If all the methods in abstract class are declared as
abstract then what is difference between abstract class and
in interface?

Answer Posted / namita

In abstract class concrete methods are also there. concrete
methods are the one which has implementation. so in future
if any programmer wants to give concrete methods can use
abstract class not interface.
In abstract class for methods and variables
public,private,protected modifier can be use. but in
interface public and abstract are permitted.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by main method?

577


What is the purpose of checked and unchecked exceptions in JAVA?

564


What is java and why do we need it? Explain

581


What does index mean in java?

536


how can you catch multiple exceptions in java?

541






What is Classloader in Java?

634


How do you execute a thread in java?

503


Are private methods final?

481


How destructors are defined in java?

626


What does system.gc() and runtime.gc() methods do?

598


What is default exception handling in java?

568


Is java a compiler?

565


What is use of inner class in java?

514


How does hashmap work in java ?

539


Difference between notify() method and notifyall() method in java?

546