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 methodology can be employed to locate substrings inside a string?
Does a function need a return?
What is the use of arrays tostring () in java?
What is local class in java?
What about abstract classes in java?
What does next mean in java?
What is a nullable field?
I want to persist data of objects for later use. What’s the best approach to do so?
How do you add an element to an arraylist in java?
What do you mean by object?
Give us a program to check for parenthesis matching using stack.
Give the hierarchy of inputstream and outputstream classes.
What are the advantages and disadvantages of reference counting in garbage collection?
Define Multiprogramming and Multiprocessing in java.
What is final variable?