Question: java basics
Here is the answer.
object is intance of class which use to access data member and data funtion of class. The JVM would take care of allocating as much memory that your objects would require automatically.
By using "new" operator we can allocate the memory of an object.