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 do you understand by overloading and overriding in java?
What is string substring?
What are the advantages of exception handling?
What is memory leak and how does java handle it?
How do you achieve polymorphism in java?
which pattern is default in scanner package?
How do you sort arrays in java?
Explain about exception propagation?
What is the longest unicode character?
Is it possible to specify multiple jndi names when deploying an ejb?
Is a string literal?
What data type is true or false?
What are the escape sequences in java?
What is a nested structure?
What is string immutability?