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 the argument type of a programs main() method?
What state does a thread enter when it terminates its processing?
Name the class that is used to bind the server object with RMI Registry?
Can I map more than one table in a cmp?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
What are local interfaces? Describe.
To what value is a variable of the string type automatically initialized?
What restrictions are placed on the values of each case of a switch statement?
What is the difference between the font and fontmetrics classes?
Which javutil classes and interfaces support event handling?
Is infobus easy to use?
Can I use javascript to submit a form?
Write a singleton program?
How would you detect a keypress in a jcombobox?
What is meant by method chaining?