Question: Question 4 (2 points) Assume class A has a non-static method named getName() and the following statement. A theVariable = new A(); Which statement correctly

Question 4 (2 points) Assume class A has a non-static method named getName() and the following statement. A theVariable = new A(); Which statement correctly calls the getName() method? super.getName(); getName(); theVariable.getName(); A.getName(); Question 5 (2 points) Which of the following is not true of the statement: String s = new String("This is a string"); s is a reference variable String is a primitive type s is an instance of class String s is an object of class String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
