package sun.scjp;  public enum Color { RED, GREEN,...
多选题

package sun.scjp;  public enum Color { RED, GREEN, BLUE }  package sun.beta;  // insert code here  public class Beta {  Color g = GREEN;  public static void main( String[] argv)  { System.out.println( GREEN); }  }  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?()

发布日期:2020-04-10

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;

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定