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 a functional interface?
What is token in java?
Explain about abstract classes in java?
How does finally block differ from finalize() method?
How do you check if a string is lexicographically in java?
What is pre increment and post increment in java?
What is the purpose of extern variable?
What is lambda programming?
Can we use switch statement with strings?
Is 9 a prime number?
What is meant by object oriented programming – oop?
How do I type unicode?
what is instanceof operator used in java?
What are the differences between checked exception and unchecked exception?
Explain the difference between arraylist and linkedlist in java?