A. Alpha a = x; B. Foo f= (Delta)x; C. Foo f= (Alpha)x; D. Beta b = (Beta)(Alpha)x;
A.1 B.12 C.14 D.123 E.Compilation fails. F.An exception is thrown at runtime.
A.0 B.1 C.2 D.3 E.4 F.6
A. Line 57 will print the value 2. B. Line 57 will print the value 3. C. Compilation will fail because of an error in line 55. D. Compilation will fail because of an error in line 56.
A. Baz has the value of “” B. Baz has the value of null C. Baz has the value of “red” D. Baz has the value of “blue” E. Bax has the value of “green” F. The program throws an exception.