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
Explain RMI Architecture?
Explain ioc concept?
What are the steps to write p-to-p model application?
Describe activation process?
What are callback interfaces?
How will you pass parameters in RMI? Why do you serialize?
What is glasgow?
How would you create a button with rounded edges?
What are various types of class loaders used by jvm?
Is jvm a overhead?
What is difference between object state and behavior?
Why use POJO when I can use hashmap
What is a class loader? What are the different class loaders used by jvm?
What is colon_pkg_prefixes and what is its use?
What is the difference between static and non-static with examples?