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 preparedstatement in java?
What is used of static keyword in java?
what are the states associated in the thread? : Java thread
What happens if we don’t override run method ?
Why is java multithreaded?
Is ++ operator is thread safe in java?
Differences between traditional programming language and object oriented programming language?
What is a dynamic array in java?
How to use arraylist in java netbeans?
What is the difference between the font and fontmetrics classes in java programming?
Can anonymous class have constructor?
Is main is a keyword?
Can we clone singleton object in java?
What do you mean by thread safe?
Is null a string in java?