Examveda

What will be the output of the following Java program?
class output 
{
    public static void main(String args[])
    { 
       String s1 = "one";
       String s2 = s1 + " two";
       System.out.println(s2);
    }
}

A. one

B. two

C. one two

D. compilation error

Answer: Option C


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings