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 public static?

0 Answers  


What do you mean by a JVM?

0 Answers   GE,


what is associative array

1 Answers   Tech Mentro,


What are features of java?

0 Answers  


How many types of keywords are there?

0 Answers  


What is Collection interface?

1 Answers   Zensar,


What is Servlet?

8 Answers  


I want to persist data of objects for later use. What’s the best approach to do so?

0 Answers  


Explain the importance of thread scheduler in java?

0 Answers  


What is lexicographically smallest string?

0 Answers  


What is the use of ?this??

4 Answers  


What is method and methodology?

0 Answers  


Categories