What is the difference between Abstract Class and Interface
Answer Posted / e.bhavani
1) all abstract methods of the abstract class should be
implemented in its sub classes
all the (abstract) methods of the interface should be
implemted in its implementation classes
2) abstract class can contain instancevariables also
interace can not contation instance varibles. it contations
only constants.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How can you traverse a linked list in java?
How do you reverse a string in java without using string buffer?
What is exception hierarchy in java?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Can we call a non-static method from inside a static method?
What is the different between get and post?
What are the actions that can occur when a thread enters blocked state?
Explain the importance of import keyword in java?
How many types of gc are there in java?
How do you compare characters in java?
what is the difference between future and callable interface in java?
what do you understand by synchronization? : Java thread
Does java initialize arrays to zero?
What is matcher in java?
Is it safe to install java on my computer?