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

Answer Posted / ravi

if all the methods are abstract in abstract class,then the
only difference left is,,,,

interface can have static and final variables with public
and abstract access modifier only ,,,while abstract class
can have any type of variable with any type of access
modifiers

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is balanced tree in java?

524


What is argument in java?

530


What do the thread?class methods run() and start() do?

530


What is the purpose of javac exe?

552


How to make a non daemon thread as daemon?

538






What will happen if a thrown exception is not handled?

557


how to create daemon thread in java?

598


If a class is declared without any access modifiers, where may the class be accessed in java programming?

649


Is void a return type?

545


Can you tell me range of byte?

553


Is nan false?

528


Can you sort a string in java?

480


What is unicode used for?

564


How many characters is 2 bytes?

521


What is the difference between a synchronized method and a synchronized block?

597