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

What are the two types of java?

728


what is the difference between the methods sleep() and wait()? : Java thread

706


What is a dynamic array in java?

763


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2310


What is the dot operator?

742






What is a conditional statement explain with example?

736


I want to print “hello” even before main is executed. How will you acheive that?

873


How does java enable high performance?

904


Why do people says “java is robust”?

749


Can an interface have a constructor?

698


Explain the meaning of java applet.

805


Why are constructors used?

725


What is an example of declaration?

727


What is the base class of all exception classes?

790


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

833