Answers for C
←Go Back to Online Practice TestQues. 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(); |
Option 1. 1, 3 |
Option 2. 2, 4 |
Option 3. 1, 2, 3 |
Option 4. 4, 5 |
Ans. Option 1 |
Please provide the reason below. The best provided reason will be displayed with your name(if you are logged-in) on website. |
Enter Reason |
Is it helpful?
Yes
No