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”); }}

Write the class header and the variable declarations (a clas…

Write the class header and the variable declarations (a class without constructors or methods, with correct syntax) for Racecar (a concrete class, child of Car). The class has the following variables: constructor (String, represents the name of the team that the racecar belongs to) points (int, represents the total number of points the car has accumulated over its races)

Fill in the blanks so that randomValue has a random integer…

Fill in the blanks so that randomValue has a random integer value between 10 and 20, both ends inclusive. int randomValue = __1__ (__2__.random() * __3__) + __4__; Use this template for your answer (please type fully – you cannot copy): 1: [answer in blank 1] 2: [answer in blank 2] … 4: [answer in blank 4]

Please read carefully: The remaining questions from this exa…

Please read carefully: The remaining questions from this exam are all part of the same problem, divided into many smaller questions. You will be asked to write 2 classes: Car (an abstract class) and Racecar (a concrete class, and child of Car). Each question will indicate the part and class you will be working on. Do NOT write getters and setters unless otherwise indicated. You won’t need any that are not indicated (and you cannot use any that are not indicated). Do NOT write Javadocs. All your constructors and methods should be visible to all classes unless otherwise noted in their description. All your instance variables and class variables should have the strictest visibility modifier. When asked for constructors or methods, do not repeat the class header or any other code. Constructors and setters must use parameter names that are the same as the related instance variable(s). You should use constructor chaining in all constructors where it can be properly applied. Your chaining must reduce the necessary code in the constructors as much as possible. You don’t need null-checks for Strings or arrays. Syntax, capitalization, and spelling matter. Canvas Tip for all Qs: Click on the dropdown that says “Paragraph” and switch to “Preformatted” to get a monospaced font – this can help in coding answers The questions begin below.