This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The class Beta and the enum Color are in different packages. Which two code fragments, inserted individually at line 2 of the Beta declaration, will allow this code to compile? (Choose two.) A. import sun.scjp.Color.*; B. import static sun.scjp.Color.*; C. import sun.scjp.Color; import static sun.scjp.Color.*; D. import sun.scjp.*; import static sun.scjp.Color.*; E. import sun.scjp.Color; import static sun.scjp.Color.GREEN;
The answers are C and E.
why not B?!! it clearly imports a static content, with full path name.