If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / namita
In abstract class concrete methods are also there. concrete
methods are the one which has implementation. so in future
if any programmer wants to give concrete methods can use
abstract class not interface.
In abstract class for methods and variables
public,private,protected modifier can be use. but in
interface public and abstract are permitted.
| Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
Name four container classes.
How do you compare characters in java?
what is encapsulation in java? Explain
How objects are stored in java?
Which variables are stored in heap?
How many ways can an argument be passed to a subroutine and explain them?
What is the full meaning of java?
How can we make copy of a java object?
What is Garbage Collection in Java
What do you mean by checked exceptions?
What are user defined exceptions?
Difference between static and dynamic class loading.
How will you load a specific locale?
Explain the pointers in Java?
What is the maximum size of array in java?