Starting with comments

08:47 Unknown 0 Comments


·         Starting with details of our java programming structure.
·         First is comments.
·         Comments are used in programming for textual description of code.
·         Comments are always ignored by compiler.
·         Writing comments in programming is optional but for our better understanding of we are writing.
·         Comments are of three types and they are

ü  Single line comments
Syntax:    //-----------------------------------

ü  Multiple line comments
Syntax:             /*-------------------
-----------------*/

ü  Documentation comments
Syntax:      /**----------------
          -------------------
          -------------------*/


Program:
 

You Might Also Like

0 comments: