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


Please Help Members By Posting Answers For Below Questions

What is a super method?

525


Is constructor inherited?

524


Difference between concurrent hashmap and hashtable and collections

557


Can a source file contain more than one class declaration?

504


What is the difference between int and integer in java?

499






How do you use nextline in java?

498


why not override thread to make a runnable? : Java thread

549


Can we use both this () and super () in a constructor?

539


How many types of exception can occur in a java program?

526


What is meant by class?

533


What are three ways in which a thread can enter the waiting state in java programming?

676


How to change value in arraylist java?

489


What are the various access specifiers for java classes?

539


What happens if we don’t define serial version uid?

562


Which methods cannot be overridden in java?

528