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

is memory to the abstract class allocated ..or objects not
instantiated

Answer Posted / amit jayaswal

Actually the fact is this that abstract class is used to achieve polymorphism (abstraction 0-100) & for code sharing among closely related concrete classes, there are no need to create and object of abstract class direct using "new" operator, because there are some abstract method & nothing to be allocated for abstract method they are here only for abstraction and there are some another non abstract method (for code sharing) and attribute inside abstract class and memory will be allocated for those members on the basis of their belonging concrete class. while we invoke constructor of their concrete class then the constructor of abstract class will be invoke implicitly.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java linked list allow duplicates?

980


Why singleton is not thread safe?

997


What does it mean that a class or member is final?

1000


What is module in project?

966


What is bool mean?

1087


What is jar?

1129


Why is java so popular?

1126


How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

1016


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

1075


What is boolean used for?

1042


how we can make a read-only class in java?

1002


What is the difference between compile-time polymorphism and runtime polymorphism?

1006


What is the type of lambda expression?

1028


Does java list allow null?

999


Is double bigger than float?

997