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

In which memory a class gets stored(in heap /in stack)?
And why??

Answer Posted / pravin

The stack is a place in the computer memory where all the variables that are declared and initialized before runtime are stored. The heap is the section of computer memory where all the variables created or initialized at runtime are stored.
Hence,classes will be stored in heap memory.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c++ have arraylist?

1023


Is c++ a dying language?

1154


What is the use of turbo c++?

1054


Is java based off c++?

976


What language does google use?

1173


Write about the local class and mention its use?

1082


which operator is used for performing an exponential operation a) > b) ^ c) none

1064


Define pointers?

1053


What is the difference between public, private, and protected access?

1071


In c++, what is the difference between method overloading and method overriding?

1147


How do you decide which integer type to use?

1008


Tell me an example where stacks are useful?

1037


What are stacks?

1066


What is problem with overriding functions?

1070


What are the advantages of using a pointer?

1082