Question ID :958011966030
Consider the following lines of code...
System.out.println(null + true); //1
System.out.println(true + null); //2
System.out.println(null + null); //3
1. None of the 3 lines will compile
2. Compiles and prints nulltrue, truenull and nullnull respectively
3. line 1 and 2 won't compile, but line 3 will print nullnull
4. line 3 won't compile but line1 and 2 will print nulltrue and truenull
5. None of the above.
The answer says 1 but it compiles fine on my jdk1.3
