This is the 9th question in Chapter 1 SCJP 6 Study Guide by Kathy Sierra and Bert Bates:
What is the result?
B. Compilation fails due to multiple errors
C. Compilation fails due to an error on line 6
D. Compilation fails due to an error on line 7
E. Compilation fails due to an error on line 11
® ✓ D is correct. The Short myGold is autoboxed correctly, but the countGold() method
cannot be invoked from a static context.
®˚ A, B, C, and E are incorrect based on the above information. (Objective 1.4)
So I thought C must be correct because data type short must be "short" not "Short", am I missing something? All primitive types starts with a lowercase letter, right?