Summary

Section 2.2 A First Program in Java: Printing a Line of Text

  • Computer programmers create applications by writing computer programs. A Java application is a computer program that executes when you use the java command to launch the JVM.

  • Programmers insert comments to document programs and improve their readability. The Java compiler ignores comments.

  • A comment that begins with // is called an end-of-line (or single-line) comment because the comment terminates at the end of the line on which it appears.

  • Traditional (multiple-line) comments can be spread over several lines and are delimited by /* and */. All text between the delimiters is ignored by the compiler.

  • Javadoc comments are delimited by /** and */. Javadoc comments enable programmers ...

Get Java™ How to Program, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.