Instantiating Objects In Java Flashcards
1
Q
Instantiating an OBJECT
A
creating an object of the class is called instantiation. It occup fixes the initial memory for the object and returns a reference. An object instantiation in Java provides they blueprint for the class.
Syntax for Instantiation
ClassName objName = new ClassName();
Instantiation In Java:
Book book1 = new Book();
2
Q
What is instantiation?
A
Creating an object of a class