An instance of a class is called an object. The object has state and behavior.
Whenever the JVM reads the “new()” keyword then it will create an instance of that class.
Example:
public class Addition{public static void main(String[] args){Addion add = new Addition();//Object creation}} |
The above code creates the object for the Addition class.