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

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

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between jvm and jre? What is an interface?

550


What is the difference between preemptive scheduling and time slicing in java programming?

532


can used Protected Class outside Function.?

612


Difference between final and effectively final ?

632


Can java program run without jre?

565






What is the maximum size of list in java?

541


How does a cookie work in Servlets?

344


Which is the best approach for creating thread ?

718


What is hash table in java?

491


How list contains works in java?

550


Can we use a default constructor of a class even if an explicit constructor is defined?

647


Difference between this() and super() in java ?

611


Is array passed by reference in java?

578


Why do we create threads in java?

574


Explain about fail safe iterators in java?

564