1. Which of the following compiles and results in a == 0 being true?
int a = 3 / 4;int a = (int) (3.0 / 4.0);double a = 3 / 4;More information: Lesson 2.1.5 and Lesson 2.1.7.
9. Which of the following method declarations overrides this method defined in the superclass? Note that {...} means there are valid statements inside the curly braces.
double calculateMilesPerGallon(double speed) {...}
int calculateMilesPerGallon(double speed) {...}double calculateMilesPerGallon(int speed) {...}double calculateMilesPerGallon(double speed, int r) {...}double calculateMilesPerGallon(double s) {...}More information: Lesson 7.1.4.