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 does void * mean?

0 Answers  


What is OOP Language?

0 Answers   Atos Origin,


Can we have multiple catch block for a try block?

0 Answers  


What about instanceof operator in java?

0 Answers  


whats the diff between jsp and servlets?

9 Answers   HCL, TCS,


class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?

2 Answers   Logica CMG,


How do you remove duplicates in java?

0 Answers  


What is foreach loop in java?

0 Answers  


What is public static void main?

0 Answers  


What is a string token?

0 Answers  


What is navigable map in java?

0 Answers  


What is the Vector class?

3 Answers  


Categories