When is a memory allocated to a class?

Answer Posted / achal

when an object of that class is created and constructor
runs. memory is allocated in Stack (part of RAM)

Is This Answer Correct ?    13 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and its types?

691


What does enum stand for?

705


Why do we use inheritance?

716


What is overloading in oop?

653


What is the significance of classes in oop?

678






What is abstraction and encapsulation?

662


What are main features of oop?

731


What is basic concept of oop?

788


What polymorphism means?

703


What is use of overloading?

726


What is class and object with example?

675


What is the benefit of oop?

648


What is encapsulation in ict?

699


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2078


What is object in oop?

782