what really hapens when a object is created using new
operator?
1.is it allocates memory to all variables and methods in
the class with reference to that object?

Answer Posted / seshu godavarthi

when we created an object with new operator it tells the
compiler to allocate a memory for the particular object

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain JMS in detail.

612


What is an immutable class? How to create an immutable class?

538


What are different ways of object creation in java ?

569


Which is better list or arraylist in java?

493


What is an array in java?

637






What is the difference between jdk, jre, and jvm?

572


What is json parser in java?

613


What is proper subset?

536


Why string objects are immutable in java?

563


Why java is made?

563


How do you execute a thread in java?

503


Explain the importance of thread scheduler in java?

593


What are the methods available in a class?

585


What is math in java?

562


Difference between concurrent hashmap and hashtable and collections

561