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
What is finalize method?
What is the difference between import java.util.date and java .util?
Write a program to find maximum and minimum number in array?
What are the approaches that you will follow for making a program very efficient?
What is functional interface in java?
What is size () in java?
How many types of string data types are there?
What is the difference between a choice and a list?
What is the java reflection api? Why it’s so important to have?
Explain throw keyword in java?
What do you understand by the bean persistent property?
How do you do exponents in java?
Why does it take so much time to access an applet having swing components the first time?
How does queue work in java?
What does method mean?