What will be the result of the following Java code? public class MyString {…
PYQ RPSC Programmer 2024
What will be the result of the following Java code? public class MyString { public static void main(String[] args) { String s1 = "Program"; String s2 = "Program"; System.out.println(s1 == s2); } }
- A.
True
- B.
Compilation error
- C.
Runtime error
- D.
False
- E.
Question not attempted
Attempted by 411 students.
Sign up free to check your answer
Sign up freeLoading lesson…

