If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?
Answer Posted / pravin
If you are making methods as abstract other restictions of
and difference is as it is like about modifiers[private, final, transient, volatile]
when condition is like your class extends other class [like JFrame or any such condition]then you cant use abstract class you must go to the interfaces.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a super method?
Is constructor inherited?
Difference between concurrent hashmap and hashtable and collections
Can a source file contain more than one class declaration?
What is the difference between int and integer in java?
How do you use nextline in java?
why not override thread to make a runnable? : Java thread
Can we use both this () and super () in a constructor?
How many types of exception can occur in a java program?
What is meant by class?
What are three ways in which a thread can enter the waiting state in java programming?
How to change value in arraylist java?
What are the various access specifiers for java classes?
What happens if we don’t define serial version uid?
Which methods cannot be overridden in java?