what is difference between interface and abstract class..?
Answer Posted / vamsi
Abstract method means means it does n't have any
implementation.
Interface contains 0 or more abstract methods
Abstract class contains abstract methods as well as general
methods.
If any of any of the class that extends the abstract class
does n't implement some of the methods , it will be marked
as abstract.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
how to split string in java?
What is token in java?
What does a void function return?
How do you override a private method in java?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
Can we use different return types for methods when overridden?
How does varargs work in java?
What is struts in java?
Difference between abstract and concrete class ?
Can we create an object of private class?
How the metacharacters are different from the ordinary characters?
What are the differences between heap and stack memory in java?
What is a return in java?
How do you sing an Applet ?
Can I extend singleton class in java?