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 (](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1606/7/1/2/8485fc47e10a65b61606712761649.jpg)
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
Output of Commentary progr... View full answer
Get step-by-step solutions from verified subject matter experts
