This is a basic java program for a car object.