English

Predict the output of the following snippet: System.out.println("This is my first Java program"); System.out.print("Display the message:"); System.out.println("Have fun!!!"); - Computer Applications

Advertisements
Advertisements

Question

Predict the output of the following snippet:

System.out.println("This is my first Java program"); 
System.out.print("Display the message:"); 
System.out.println("Have fun!!!");
Answer in Brief

Solution

This is my first Java program

Display the message:Have fun!!! 

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.05: Introduction to Java - EXERCISES [Page 54]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.05 Introduction to Java
EXERCISES | Q III. 2. | Page 54
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×