Question: java question WILL leave a like Given the following class, what sets of statements would have the end result of the myStudent instance having the

Given the following class, what sets of statements would have the end result of the myStudent instance having the studentname as teststudent letterGrade as test as B and then outputting the studentname and letterGrade? Student myStudent = new Student(); myStudent.setStudentName("teststudent"); myStudent.setLetterGrade("B"); System.out.println("Student: " + myStudent. getStudentName()); System.out. println("LetterGrade: " + myStudent.getLetterGrade()); Student myStudent = new Student("teststudent", "B"); System.out.println("Student: " + nyStudent.studentname); System.out.println("LetterGrade: " + myStudent.1etterGrade); Student myStudent = new Student("teststudent", "B"); System, out. println("Student:" + myStudent. getStudentName()); System.out.println("LetterGrade: " + myStudent. getLetterGrade()); Student myStudent = new Student("teststudent", "B"); System, out. println("Student; " + myStudent.studentname()); System.out. println("LetterGrade: " + myStudent.letterGrade())
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
