Object (Java)
An object is a specific instance created from a class. The class is the blueprint; the object is the actual thing built from it, with its own copy of the class's fields.
Java
You create an object with the new keyword, which calls the class's constructor and returns a reference to the new instance. You can make many objects from a single class, each holding its own data.
Everything you work with in Java (apart from primitive types) is an object.
Examples
Java
public class Point {
int x, y;
public static void main(String[] args) {
Point p = new Point();
p.x = 3;
p.y = 5;
System.out.println(p.x + ", " + p.y);
}
}Output:
3, 5