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?
Answers were Sorted based on User's Feedback
Answer / aaa
it allocates the memory to the variables which belongs to
that object.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / 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 |
What is the GregorianCalendar class?
what is the purpose of the runtime class?
How do you sort an array in java?
What is the method to expand and collapse nodes in a jtree?
How big is a boolean?
Which are the two subclasses under exception class?
Can a constructor have different name than a class name in java?
Is main a function?
When is the arraystoreexception thrown?
What is google full form?
What is java reflection?
How do you add an element to a set in java?