MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following is the correct way to create an object of the class Sample? 1.Sample s = new Sample(); 2.Sample s; 3.Sample s; s = new Sample(); 4.s = new Sample(); |
| A. | 2, 4 |
| B. | 1, 3 |
| C. | 4, 5 |
| D. | 1, 2, 3 |
| Answer» C. 4, 5 | |