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?

Answers were Sorted based on User's Feedback



what really hapens when a object is created using new operator? 1.is it allocates memory to all v..

Answer / aaa

it allocates the memory to the variables which belongs to
that object.

Is This Answer Correct ?    9 Yes 0 No

what really hapens when a object is created using new operator? 1.is it allocates memory to all v..

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

what really hapens when a object is created using new operator? 1.is it allocates memory to all v..

Answer / joker

more precisely to non static variables..

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is the GregorianCalendar class?

2 Answers   HCL,


what is the purpose of the runtime class?

0 Answers  


How do you sort an array in java?

0 Answers  


What is the method to expand and collapse nodes in a jtree?

0 Answers  


How big is a boolean?

0 Answers  






Which are the two subclasses under exception class?

0 Answers  


Can a constructor have different name than a class name in java?

0 Answers  


Is main a function?

0 Answers  


When is the arraystoreexception thrown?

0 Answers  


What is google full form?

0 Answers  


What is java reflection?

0 Answers  


How do you add an element to a set in java?

0 Answers  


Categories