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

Explain about complier design(phases)

0 Answers   Aditi Placement Service,


What are the types of collections in java?

0 Answers  


What do you mean by access modifier?

0 Answers  


What is floating data type?

0 Answers  


Is static a singleton?

0 Answers  






What's the difference between an abstract class and interface in java?

0 Answers  


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

0 Answers  


Is main a keyword in java?

0 Answers  


What is a default constraint?

0 Answers   HCL,


What is default size of arraylist in java?

0 Answers  


Which number is denoted by leading zero in java?

0 Answers  


in a console we r giving java <class name> if r pressing enter where it'll goes

2 Answers   CSC,


Categories