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 are scalar data types?
Why Java doesn’t support multiple inheritance?
How hashmap increases its size in java?
What is the simpletimezone class in java programming?
Which object oriented concept is achieved by using overloading and overriding?
Is null an object java?
How many types of exception can occur in a java program?
Which eclipse is best for java?
What is the benefit of inner classes in java?
How do you clear a list in java?
Which of the following is not an isolation level in the JDBC
How do you compare objects in java?
What is nested loop? What is dangling else condition in it?
What are the major advantages of internal iteration over external iteration?
What is bitwise complement?