Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

When we will use an Interface and Abstract class?

Answer Posted / debapriya patra

Interface:
Through interface we get the multiple inheritance
in java.And we implement interfaces to override the
abstract methods it contains.


Abstract class:

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

If we wants to prevent a class from instantiation then we
mentioned it as abstract.

Is This Answer Correct ?    25 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the escape character in java?

929


Explain access specifiers?

1120


What is the internal implementation of set in java?

883


What is difference between an object and a class?

1071


What is the synonym of framework?

943


What causes memory leak in java?

886


Explain, java is compatible with all servers but not all browsers?

1006


What is the difference between Error, defect,fault, failure and mistake?

1137


What's the purpose of static methods and static variables?

1035


What is a blocking method in Java?

1137


Can sleep() method causes another thread to sleep?

988


Where are register variables stored?

968


What is linkedlist in java?

935


Can an interface have a constructor?

900


What is a parameter example?

926