Object


public class ObjectDemo {

    public void Display() {
        System.out.println("ObjectDemo Object Invocation.");
    }

    public static void main(String[] args) {
        
        ObjectDemo obj;    // object Creation
        obj = new ObjectDemo();  // instantiation
        obj.Display();
    }
}

Output:
ObjectDemo Object Invocation.