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 the largest data type in java?
How is the marker interface used in Java?
What is your platform’s default character encoding?
What is substring in java?
What is basic syntax?
Tell me a few examples of final classes defined in Java API?
what is interface in java? Explain
What is package private scope in java?
What is javac used for?
What is the purpose of static keyword in java?
How does split work in java?
What is the abstraction?
What are the 6 functions?
What are invisible components?.
Which number is denoted by leading zero in java?