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

Explain about main thread in java?

834


What is protected in java?

715


What is the benefit of abstract class?

688


Can a class be declared as static?

866


Write a method to check if input string is palindrome?

747






Can sleep() method causes another thread to sleep?

758


What is a copy constructor in java?

790


What are internal and external variables?

698


What does n mean?

686


Explain about object oriented programming and its features?

773


What is bigger kb or mb?

781


What is the difference between a window and a frame in java programming?

812


why would you use a synchronized block vs. Synchronized method? : Java thread

716


Is ruby built on java?

701


Is string an object?

845