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 */ .
Java Statements and Comments
Posted by
Jessica
on Sunday, October 18, 2009
Labels:
Comments. Statements
0 comments:
Post a Comment