What is the difference between Abstract Class and Interface
Answer Posted / guest
An abstract class can have instance methods that implement a
default behavior. An Interface can only declare constants
and instance methods, but cannot implement default behavior
and all methods are implicitly abstract. An interface has
all public members and no implementation. An abstract class
is a class which may have the usual flavors of class members
(private, protected, etc.), but has some abstract methods.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between extends thread vs implements runnable in java?
Can we execute a program without main?
What is difference between word and integer?
Which is better 64 bit or 32 bit?
What are the 8 data types in java?
Can we override private method in java?
What is the difference between actual and formal parameters?
Can we override the private methods?
What is getkey () in java?
Can you call a method on a null object?
What is data type in computer?
How do you declare an array in java?
Explain the pointers in Java?
How does system arraycopy work in java?
What is a list in java?