Question: Which answer declares a variable for a student's name? NOTE: XXX is a placeholder for one of the answers below. public class Student { XXX
Which answer declares a variable for a student's name?
NOTE: XXX is a placeholder for one of the answers below.
public class Student
XXX
private double myGPA;
private int myID;
public int getID
return myID;
Question options:
String studentName;
public String studentName;
private studentName;
private String studentName;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
