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