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 a tasks priority and how is it used in scheduling?
What class is used to create Server side object ?
What is the difference between session and entity beans?
What is the difference between long.class and long.type?
How substring() method of string class create memory leaks?
What is in-memory replication?
Why does the option tag render selected=selected instead of just selected?
cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..
Difference between DurableSubscription and non- DurableSubscription?
What is a modular application? What does module-relative mean?
Is a class a subclass of itself?
Explain RMI Architecture?
What happens when a thread cannot acquire a lock on an object?
Which are the different segments of memory?
What is clustering? What are the different algorithms used for clustering?