Which of the following statements is correct to display Welcome to Java on the console?

a. System.out.println('Welcome to Java');
b. System.out.println("Welcome to Java");
c. System.println('Welcome to Java');
d. System.out.println('Welcome to Java");
e. System.out.println("Welcome to Java');

b

Computer Science & Information Technology

You might also like to view...

When information (such as a title) spans more than one column in a table, those cells should be ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Name the two sublayers of Layer 2 protocols defined by IEEE, and give the purpose of each.

What will be an ideal response?

Computer Science & Information Technology