【单选题】给定如下java代码,可以填入横线处的语句是() public interface Constants{ int MAX = 50; int MIN = 1; } public class Test { public static void main(String[] args) { ———————————— } }
【单选题】给定如下Java代码,可以填入横线处的语句是()。 public interface Service {} public class ChinaMobile implements Service{} public class ChinaUnicom implements Service{} public abstract class Vehicle{} public class Car exten...
【单选题】给定如下Java代码,可以填入横线处的语句是( )。 public interface Distance { int START=0; int END=100; public void setDistance(int end); } public class Test { public static void main(String[] args) { } }
A.
Distance dis= new Distance ();
B.
new Distance() { public void setDistance(int end) { int i=end; i=Distance.END; } };
C.
new Distance() { public void setDistance(Distance.END) { int i=0; i=Distance.END; } } ;