Vidyalelo
Java Programming · Q33

Strings

Programming · Java Programming · question 33

Q33

What will be the output of the following program? public class Test public static void main(String args[]) String s1 = "java"; String s2 = "java"; System.out.println(s1.equals(s2)); System.out.println(s1 == s2);

A.
false true
B.
false false
C.
true false
D.
true true
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board