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 / dhawal

when u want behavior of interface then u can implement that
inteface with any other class and after instantiate that
class u can get behavior of that interfce because by default
methods in interface are abstract,
But in case of abstract class u can not create object of
abstract class means you can not instantiate abstact class
but after extending or by creating base class pointer ,using
dynamic method dispatch u can get behavior of abstract class

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of immutable regarding string?

1009


What is string builder in java?

1056


What is java literals?

1200


What are loops in java? What are three types of loops?

1072


What is a variable in java?

1214


Can we have multiple catch block for a try block?

1064


what is the swingutilities.invokelater(runnable) method for? : Java thread

1079


What is the purpose of garbage collection in java, and when is it used?

1091


Are constructors methods?

1072


What do you mean by order of precedence and associativity?

996


What is the finalize method do?

1148


Which graphs are functions?

1013


What is the range of a character variable?

1041


What is getclass () getname () in java?

1194


What is the difference between the paint() and repaint() methods in java programming?

1236