Home / Programming MCQs / JAVA MCQs / Question
J
Q. What is the output for the below code ?
1. public class Test{ 2. public static void main(String[] args){ 3. int i = 010; 4. int j = 07; 5. System.out.println(i); 6. System.out.println(j); 7. } 8. }
By placing a zero in front of the number is an integer in octal form. 010 is in octal form so its value is 8
You must be Logged in to update hint/solution
What is the file extension of compiled java program?
How are you able to sort given HashMap on basis of values
Choose the correct implementation of floating point literals in the exponential form in Java.
What do you mean by chained exceptions in Java?
Which of the following is not a core component of Hibernate?
An Enhanced FOR loop in Java misses ___ and __ compared to the old-style FOR loop.
Which of these ways used to communicate from an applet to servlet?
In Iterator, nextElement() method of Enumeration has been changed to
Discusssion
Login to discuss.