Sail E0 Webinar
Question
What is output of the following code:public class Test{ public static void main(String[] args){ int[] x = {120, 200, 016 }; for(int i = 0; i < x.length; i++) System.out.print(x[i] + " "); }}
Options:
A .  120 200 016
B .  120 200 16
C .  120 200 14
D .  016 is a compile error. It should be written as 16.
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers