Page 226 - IT-802_class_12
P. 226

9   Type the class name as your choice let say ‘HelloWorld’.



























             A new Java file page appears where you start writing the code.





















        In the code editor, notice how much of the code is greyed out. The grey areas are all comments.

        Comments
        Programmers use comments in their code to document their programs and provide explanatory remarks to anyone
        who view it. This is particularly beneficial in the real world, where massive applications are built by a single program
        and maintained by others. In a Java program, you can write comments in one of two ways:
        Ð ÐBeginning a comment line with two consecutive forward slashes (//)

        Ð ÐWriting the comment between the symbols /* and */
          224   Touchpad Information Technology-XII
   221   222   223   224   225   226   227   228   229   230   231