1. Assume you have a Car class that declares two private instance variables, make and model. Write Java code that implements a two-parameter constructor that instantiates a Car object and initializes both of its instance variables.
2. Logically, the make and model attributes of each Car object should not change in the life of that object.
a. Write Java code that declares constant make and model attributes that cannot be changed after they are initialized by a constructor. Configure your declarations so that get- methods are not needed to read the values of these attributes from outside the class.
b. Assuming you are in a separate driver class that has already used a constructor to create and fully initialize an object called car that has constant make and model attributes, write a Java statement that prints these two attributes on one line with one space between them.
3. Assume a Car class already has a two-parameter constructor that initializes make and model attributes. Write Java code that implements an additional constructor that has three parameters ─ two String parameters to initialize the same make and model attributes initialized by the two-parameter constructor, plus another int parameter to initialize a miles variable. Your code should utilize the two-parameter constructor to implement those operations which the two-parameter constructor is already able to perform.
4. Suppose a Car class defines an equals method with this header:
public boolean equals(Car car)
This equals method returns true if and only if the calling object and the parameter object have the same make and model. Otherwise, it returns false.