Question
class output {
public static void main(String args[])
{
String s1 = "one";
String s2 = s1 + " two";
System.out.println(s2);
}
}
What is the output of this program?
class output {
public static void main(String args[])
{
String s1 = "one";
String s2 = s1 + " two";
System.out.println(s2);
}
}
Answer: Option C
Was this answer helpful ?
None.
Output:
$ javac output.java
$ java output
one two
Was this answer helpful ?
More Questions on This Topic :
Question 2.
Which of these is an oncorrect statement?
....
Submit Solution