Menu
Question Index
...

Which of the following is a valid declaration of an object of class Student?

1. Student obj = new Student;
2. Student obj = new Student();
3. obj = new Student();
4. new Student obj;


1 only
2 only
1 & 2
3 & 4
All of the above
None of the above

Doubts

Problems

Topic: Java Objects References

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App