What is the difference between Abstract Class and Interface
Answer Posted / tarun jangra
1. An abstract class is a specialization whereas Interface
is a generalization. That means an abstract class is created
when only few class wants to share some methods,when you
have to create some methods to be shared by all the classes
then interface is used.
2. An abstract class can have non-abstract methods (means
methods with implementation) while all the methods in an
Interface are by default abstract.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is the use of arraylist class in java?
what is the significance of listiterator in java?
write a program that list all permutations of ABCDEF in which A appears before B?
Write code of any action class?
How many types of java are there?
What does t in java mean?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
Difference between process and thread?
Can a class be final?
What is the format specifier?
Can sleep() method causes another thread to sleep?
What is the significance of continue jump statement? Explain with an example.
Explain runtime exceptions?
Can we have try block without catch block?
Define an applet in java?