A
Q. Given that Student is a class, how many reference variables and objects are created by the following code?
Code:
Student studentName, studentId;
studentName = new Student();
Student stud_class = new Student();
studentName = new Student();
Student stud_class = new Student();
- Correct Answer - Option(B)
- Views: 29
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.