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 |
Explain the difference between transient and volatile in java?
What is the default access specifier for variables and methods of a class?
What are the basic interfaces of java collections framework?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
What are the differences between graph and tree?
How do you check if a string is lexicographically in java?
How thread scheduler schedule the task?
Difference between prefix and postfix forms of the ++operator?
Can a static class implement an interface?
Can a static class have a constructor java?
What are locale settings?
What is the relationship between clipping and repainting under awt?