Multiple Choices
Answer (Choose 1 answer)
What will be the output of the following code?
1. public class integerEquals 2. {
3.public static void main(String args[])
4.{
5.Integer a= new Integer(0);
6.Integer b= new Integer(0);
7.System.out.println(a==b);
8.9.}}
A. The compiler will show an error at line 7
B. The program compiles and prints true
C. The program compiles and prints false
D. The program compiles but causes a runtime exception at line 7