Write a main method for Racecar. It should first initialize…

Write a main method for Racecar. It should first initialize one Racecar from constructor “Red Bull” and another Racecar from constructor “McLaren”. You may set the other values as you like for each. Oh no! Looks like the McLaren experienced an engine oil leak during the Dutch Grand Prix, causing it to retire early. Have the Red Bull racecar drive 190.5 miles and the McLaren drive only 171.99 miles, each in the city “Zandvoort”. Then, print the String representation of both cars. You do not need to show the output.

Consider the below constructors. What would the output of Ch…

Consider the below constructors. What would the output of Child c = new Child() be? // in Parent.javapublic class Parent { public Parent() { System.out.println(“Parent constructor”); }}// in Child.javapublic class Child extends Parent { public Child() { System.out.println(“Child constructor”); }}