Question: What is the output of the following program? Note that the program contains several comments. public class Commentary { 2 public static void main (String

What is the output of the following program? Note that the program contains several comments.

public class Commentary { 2 public static void main (String [] args) { System.out.println (

public class Commentary { 2 public static void main (String [] args) { System.out.println ("some lines of code"); System.out.println ("have // characters on them"); System.out.println ("which means "); // that they are comments // System.out.println ("written by the programmer."); 8. System.out.println ("lines can also"); System.out.println ("have /* and */ characters"); 10 /* System.out.println ("which represents"); 11 System.out.println ("a multi-line style"); 12 */ System.out.println ("of comment."); 13 } 14 3.

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Output of Commentary progr... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!