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
What are the two types of java?
what is the difference between the methods sleep() and wait()? : Java thread
What is a dynamic array in java?
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
What is the dot operator?
What is a conditional statement explain with example?
I want to print “hello” even before main is executed. How will you acheive that?
How does java enable high performance?
Why do people says “java is robust”?
Can an interface have a constructor?
Explain the meaning of java applet.
Why are constructors used?
What is an example of declaration?
What is the base class of all exception classes?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?