Computer Science, asked by ramdev5069, 1 year ago

Choose the correct option for the output of the above statements

Answers

Answered by sneha25675
0

I could not find any statements dear

Answered by stefangonzalez246
0

Complete Question:

"System.out.print(“BEST “);

System.out.println(“OF LUCK”);

Choose the correct option for the output of the above statements.

(I) BEST OF LUCK

(II)BEST

  OF LUCK"

Answer:

(I) BEST OF LUCK

Explanation:

  • Using System.out.println () means that after printing the desired output, a new line will be printed.
  • System.out.print (), on the other hand, means that there are no new lines after the desired output line has been printed.
  • Java has different types of system-defined methods that run different jobs.
  • So there is print() in 1st line so no next line takes place.

#SPJ3

Similar questions