Examveda

What will be the output of the following Java program?
class string_demo 
{
    public static void main(String args[])
    {
        String obj = "I" + "like" + "Java";   
        System.out.println(obj);     
    }
}

A. I

B. like

C. Java

D. IlikeJava

Answer: Option D


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java