If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / ashok kumar
Methods in the abstract class can be accessed only through
a class hierarchy i.e through inheritance.
But methods in the interface can be accessed anywhere i.e
across the class hierarchy.(without inheritance).
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Difference between static and dynamic class loading.
Is boolean a data type in java?
v-model life cycle
What do you understand by abstract classes?
Which methods are used during serialization and deserialization process?
Give me example of derived data types.
Is int primitive data type?
What is thread synchronization in java?
Which class is the superclass for every class in java programming?
Does java support function overloading, pointers, structures, unions or linked lists?
Give us a program to check for parenthesis matching using stack.
Explain the difference between extends thread vs implements runnable in java?
What is t type java?
Is list ordered in java?
What is string syntax?