difference between Abstract and Interface?
Answer Posted / ravi raj
Abstract Class:
---------------
1.abstract class contain the abstract and non-abstract methods
2.abstract class contain static and non-static variables
3.through abstract class we can get 0-50% abstraction in java
4. if any class declared as a abstract i.e abstract class
5. we wont create instance for this class.
6. we cont make final for this class.
Interface :
-----------
1. Interface contains only abstracted methods.
2. it allows only static and final variables.
3. interface is by default abstracted and public.
4. through interface we get 100% abstraction.
5. we can solve the multiple threading in interface.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is glasgow?
What is the difference between ear, jar and war file?
Where can I find seam examples and documentation?
Difference between loadclass and class.forname?
What are the call back methods in entity bean?
When is the best time to validate input?
What is ripple effect?
What is the relationship between local interfaces and container-managed relationships?
What is a clone?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Describe responsibilities of Activator?
What is Stream Tokenizer?
What is the relation between the infobus and rmi?
Define prototype?
Explain the difference between object state and behavior?