

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