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 to use abstract class and when to use interface?

Answer Posted / arvind

If you have to implement all of the fuctionalities provided
by, then in this case you should use interfaces because
they force you to implement all of the methods.

on the other hand if you think you have to imlement few of
them , then better you use abstract class.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it compulsory for a try block to be followed by a catch block in java for exception handling?

952


What are the 4 types of research methods?

875


Give us the name of the list layoutmanagers in java?

878


What is the destroy method?

997


Can we have two methods in a class with the same name?

991


How do you convert an int to a string in java?

1060


Why are data types important?

1002


How do you insert a line break?

857


What are the differences between wait() and sleep()?

960


What is the difference between throw and throws keywords?

991


What technique can be employed to compare two strings?

1025


What is equals method in java?

980


What is nested interface?

961


When is the finalize() called?

1126


What do you understand by access specifiers in Java?

964