| 3.6 |
What will be the result of attempting to compile and run the following program?
public class Integers {
public static void main(String[] args) {
System.out.println(0x10 + 10 + 010);
}
}
Select the one correct answer.
The program will not compile. The compiler will complain about the expression 0x10 + 10 + 010. When run, the program will print 28. When run, the program will print 30. When run, the program will print 34. When run, the program will print 36. When run, the program will print 101010.
|