how to initialize object in java code example Example: create instance object java myCar = new Car();