Starting with 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:


0 comments: