In Java, which syntax is correct to create a new object?
Object obj = new Object();
Object obj = createObject();
Object obj{}
Object obj = new Object{};

Object-Oriented Programming Exercises are loading ...