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
Why java is called not pure object oriented language?
Is list thread safe in java?
What is a void method?
How hashset works internally in java?
Should a main method be compulsorily declared in all java classes?
What is void class in java?
why java uses class level type casting ?
Does every java program need a main?
How big is a boolean?
What technique can be employed to compare two strings?
What are the escape sequences in java?
Can a set contain duplicates?
Can a method inside a interface be declared as final?
What is primitive data type in java?
What is meant by method?