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 do you mean by checked exceptions?

529


Which class is used by server applications to obtain a port and listen for client requests?

490


What is floor in java?

550


In java, how we can disallow serialization of variables?

547


Why are parameters used in functions?

525






What is ph and buffers?

516


How we create object in copy constructor?

636


What is the difference between double and float variables in java?

628


Define max and min heap, also the search time of heap.

581


What are user defined exceptions?

582


When should you make a function static?

539


Can you start a thread twice in Java?

627


Tell me how many ways are there to initialise an integer with a constant.

636


What are anonymous inner classes?

559


Why do we need hashset in java?

487