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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sprintf allocate memory?

591


Why packages are used?

536


What’s the difference between callable and runnable?

537


What do you mean by order of precedence and associativity?

539


Give some features of interface?

580






What is core java called?

522


Does isempty check for null?

550


How java is similar to c?

582


What data structures are used to perform recursion?

598


Is void a type?

579


Implement a stack with push (), pop() and min() in O(1) time.

622


Why chararray() is preferred over string to store the password?

522


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

829


What are actual parameters?

517


What is difference between stringbuffer and string?

486