|
Java Reference Home | Smart Soft Home |
|
|
new
CategoryOtherDescriptionUsed to instantiate an object. Instantiating an object does two things: 1. Creates the object in memory. 2. Invokes the object's constructor method new is only used with reference data types (objects) - not primitives.Exampler1=new Room(); |
|