syntax to create an object in java in java code example
Example 1: how to create a Scanner Object in java
Scanner console = new Scanner(System.in);
Example 2: how to create a object in javascript
var a = {
name: "aakash",
age:30
}
Scanner console = new Scanner(System.in);
var a = {
name: "aakash",
age:30
}