When we will use an Interface and Abstract class?

Answer Posted / basireddy

interface is used when we want all the methods implement
the methods differnetly in different situations.


Abstract class
We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does .equals do in java?

733


What are scalar data types?

725


Is the empty set a singleton?

737


How to declare objects of a class ?

832


How do you compare arrays in java?

722


What is difference between identifier and variable?

759


What is final keyword in java? Give an example.

795


What is a nonetype?

798


How many bytes is double?

764


What is the exact difference in between Unicast and Multicast object?

1789


Does java arraylist maintain insertion order?

783


What is dynamic binding(late binding)?

816


How do you remove an object from an arraylist in java?

687


What is formatted output?

743


What does function identity () do?

745