MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? class A { int i; int j; A() { i = 1; j = 2; } } class Output { public static void main(String args[]) { A obj1 = new A(); System.out.print(obj1.toString()); } } |
| A. | True |
| B. | False |
| C. | String associated with obj1 |
| D. | Compilation Error |
| Answer» D. Compilation Error | |