java create new instance of a method code example Example: create instance object java myCar = new Car();