Question: #1. OOP Classes... + - 0/2 points #trials: 1/1 Given that I have a file named Student.java with the following class in it: public class

#1. OOP Classes... + - 0/2 points #trials: 1/1 Given that I have a file named Student.java with the following class in it: public class Student { public String name; private double GPA; public Student) { name="John Doe"; GPA=0; If I have a Java program (testStudent.java) that makes use of the Student class, will the following statements in the main method of testStudent be valid? Student s = new Student(); System.out.print(s.GPA); Yes No
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
