Can a class extend abstract class or interface? why
Answer Posted / ramakrishna
Yes, A class can extend an abstract class also any
interface,why because,A normal class which is implementing
an interface can still be declared as any abstract,if u
extend that class what happens?
u r extending an abstract class and indirectly extending
interface also.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How do you remove all elements from an arraylist in java?
Where is the singleton class used?
Can an object subclass another object?
What is the difference between serializable and externalizable interfaces?
What is prefix of a string?
What is mvc in java?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What do you mean by data type?
Explain about the security aspect of java?
If a method is declared as protected, where may the method be accessed?
Explain the difference between arraylist and linkedlist in java?
How to write custom exception in java?
What is the difference between double and float variables in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
How do you remove an object from an arraylist in java?