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...

can u give one sinario when you use Abstract Class and When
you use Interface.

Answer Posted / srinivasa

If there are multiple objects which use common methods and
different implementaion of methods We use Abstract class.

If multiple objects use different implementation of methods
for every object we use interface.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the synonym of string?

1040


Explain the difference between transient and volatile in java?

957


What is the static keyword?

1033


What is main in java?

1064


What is the use of keywords in java?

937


What is the difference between private & public & friendly classes?

1019


What is string english?

960


Which oo concept is achieved by using overloading and overriding?

951


Why does abstract class have constructor?

946


Is age a discrete variable?

918


What is nextint java?

977


How would you format a date in java? I.e. In the ddmmyyy format?

1318


What should I import for arraylist in java?

978


What is the different between get and post?

906


What is callablestatement? How you can call stored procedure to pass in parameter?

981