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

Answer Posted / prasad bhagwat

You can inherit the abstract class and use only those
methids which you want.

But in Interface you have you implement every method.

Is This Answer Correct ?    7 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of inner classes?

527


What is the use of jtable?

640


Why object class is super class for every class in java?

559


Do you know why doesn't the java library use a randomized version of quicksort?

542


What does escaping a character mean?

528






Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

825


Is space a character in java?

506


What is the use of keywords in java?

545


What are adapter classes?

595


What is a method vs function?

545


What is string array?

568


Can you instantiate the math class in Java?

601


What does this mean java?

549


What is mnemonic code?

530


What are some alternatives to inheritance?

551