Question: Which of these options is valid in Java? a. Abstract class cannot be instantiated. b. Interface cannot be instantiated. c. Abstract class or interface cannot
Which of these options is valid in Java?
| a. | Abstract class cannot be instantiated. | |
| b. | Interface cannot be instantiated. | |
| c. | Abstract class or interface cannot be instantiated except when it is being instantiated as anonymous subclass. | |
| d. | Anonymous class can only be instantiated using the concrete class. | |
| e. | All of these above. | |
| f. | None of these above. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
