Question
Answer yes or no to the following statements. A super class reference variable can refer to the same super class object; A super class reference
Answer yes or no to the following statements.
A super class reference variable can refer to the same super class object;
A super class reference variable can refer to its subclass object;
A subclass reference variable can refer to the same subclass object;
A subclass reference variable can refer to its super class object.
A Java class cannot have more than one constructor in it.
A Java inner class cannot access the instance fields in the outer (containing) class
In Java programs, finally clause is used to provide the comments at the end of the program.
A sub class can inherit static methods of its super class.
In Java, a sub class can extend many superclasses but can implement only one interface.
Java abstract class can contain implemented and abstract methods.
Java Interface can have instance fields.
Lambda expression in Java can have only the expression and nothing else.
The remove method of an Iterator object can be used successively twice to remove two adjacent elements from the collection that the Iterator is referring to
Java abstract class can contain implemented and abstract methods.
Static method's body can use 'this' reference of the calling object
A Java class cannot have both default and parameterizedconstructors.
Aggregation is referred as 'is-a'relationship.
@Overload is used to specify that the super class's method is being overloaded in the subclass
A super class reference variable can refer to an object of that class only
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started