A
Q. What will be the output of the following program code?
class LogicalCompare{
public static void main(String args[]){
String str1 = new String("OKAY");
String str2 = new String(str1);
System.out.println(str1 == str2);
}
}
- Correct Answer - Option(B)
- Views: 17
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.