Consider the following Student class. class Student { privat…
Questions
Cоnsider the fоllоwing Student clаss. clаss Student { privаte String name; private int age; public Student(String studentName, int studentAge) { name = studentName; studentAge = age; }} The following code segment appears in the Main class: Student myStudent = new Student("Bobby", 25); Which of the following best describes the state of the object myStudent as a result of executing this code segment?