Java Statements and Comments

A Java program consists of statements and comments. Statements are the steps that tell that program what to do while Comments are internal documentation that explain what the statements do.

Most statements end with a semi-colon ( ; ) while a block of statements starts with an opening brace ( { ) and ends with an ending brace ( } ).

Single comment starts with // followed by the comment. A block of comments start with /* and ends with */ .

0 comments:

Post a Comment