<<< String with quotation marks | Index | Method call >>> |
The syntax to create an object from a class:
ClassName objectName = new ClassName(arguments);
For example,
Scanner sc = new Scanner(System.in); // creates a Scanner object named sc Date now = new Date(); // creates a Date object named now
<<< String with quotation marks | Index | Method call >>> |