Question PRG-JAVA-0010
MediumWhat is the output of this program?
public class Main {
public static void main(String[] args) {
String a = "java";
String b = "java";
System.out.println(a == b);
}
}
- A.
null
- B.
Error
- C.
Sign up free to see the answer and a step-by-step explanation.