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();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is instantiation?

A

Creating an object of a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly