This preview shows page 1. Sign up to view the full content.
Unformatted text preview: • Comments are used to describe what your code does and aid reading your code.
• The Java compiler ignores them.
• Comments are made using – //, which comments to the end of the line,
– or /* */, everything inside of it is considered a comment
(including multiple lines). The comment begins after the first /*.
It ends just before the first */. • Examples:
/* This comment begins at this line.
This line is included in this comment
It ends at this line. */
// This comment starts here and ends at the end of this line.
Page 6 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP...
View Full Document
This document was uploaded on 03/03/2014.
- Spring '14