MCQOPTIONS
Saved Bookmarks
| 1. |
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] + " ");}} |
| A. | 20 200 16 |
| B. | 20 200 14 |
| C. | 20 200 016 |
| D. | 16 is a compile error. It should be written as 16. |
| Answer» C. 20 200 016 | |