MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? package pkg; class display { int x; void show() { if (x > 1) System.out.print(x + " "); } } class packages { public static void main(String args[]) { display[] arr=new display[3]; for(int i=0;i |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 0 1 2 |
| Answer» D. 0 1 2 | |