what is an object and how do you allocate memory to it?
Answer Posted / janet
Object is an instance of a class and it is a software unit
that combines a structered set of data with a set of
operations for inspecting and manipulating that data. when
an object is created using new operator,memory is allocated
to it.
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
Mention the default values of all the elements of an array defined as an instance variable.
Can I extend singleton class in java?
What is getkey () in java?
Difference between a process and a program?
What is difference between word and integer?
Explain an intermediate language?
How many functional interfaces does java 8 have?
Can a vector contain heterogenous objects?
What are the types of sockets in java?
Explain runtime exceptions?
How do you do math powers in java?
Can we extend a class with private constructor?
What mechanism does java use for memory management?
What is the difference between == and === javascript?
Is it possible to compare various strings with the help of == operator? What are the risks involved?