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
Explain access modifiers in java.
What is diamond operator in java?
Explain java coding standards for methods?
What is canonical name in java?
Explain the difference between association, aggregation and inheritance relationships.
What are different types of constants?
What is the purpose of static keyword in java?
Can you use abstract and final both with a method?
What is linked hashmap and its features?
Why java is called not pure object oriented language?
what is a thread pool in java and why is it used?
Differentiate between nested and inner class in java.
What is main string [] args?
What do you mean by boolean?
What is a method declaration?