多选题Which are valid identifiers?()A_classB$value$Czer@D¥ngstrE2muchuq

多选题
Which are valid identifiers?()
A

_class

B

$value$

C

zer@

D

¥ngstr

E

2muchuq


参考解析

解析: 暂无解析

相关考题:

单选题1. class Super {  2. public float getNum() { return 3.0f; }  3. }  4.   5. public class Sub extends Super {  6.   7. }  Which method, placed at line6, causes compilation to fail?()A public void getNum(){}B public void getNum(double d){}C public float getNum() { return 4.0f; }D public double getNum(float d) { return 4.0d; }

单选题public class test (    public static void main (String args) {    int i = 0xFFFFFFF1;  int j = ~i;   }    )   What is the decimal value of j at line 5?()A 0B 1C 14D –15E An error at line 3 causes compilation to fail.F An error at line 4 causes compilation to fail.

单选题What is the result?()A Compilation fails because of an error in line 3.B Compilation fails because of an error in line 7.C Compilation fails because of an error in line 9.D If you define D e = new E(),then e.bMethod() invokes the version of bMethod() defined in Line 5.E If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 5.F If you define D e = (D)(new E()),then e.bMethod() invokes the version of bMethod() defined in Line 9.

多选题10. class Inner {  11. private int x;  12. public void setX( int x) { this.x = x; }  13. public int getX() { return x; }  14. }  15.  16. class Outer {  17. private Inner y;  18. public void setY( Inner y) { this.y = y; }  19. public Inner getY() { return y; }  20. }  21.  22. public class Gamma {  23. public static void main( String[] args) { 24. Outer o = new Outer(); 25. Inner i = new Inner();  26.int n=10;  27. i.setX(n);  28. o.setY(i);  29. // insert code here  30. System.out.println( o.getY().getX());  31. }  32. }  Which three code fragments, added individually at line 29, produce the output 100?()An = 100;Bi.setX( 100);Co.getY().setX( 100);Di = new Inner(); i.setX( 100);Eo.setY( i); i = new Inner(); i.setX( 100);Fi = new Inner(); i.setX( 100); o.setY( i);

单选题public class SyncTest {  private int x;   private int y;   public synchronized void setX (int i) (x=1;)   public synchronized void setY (int i) (y=1;)   public synchronized void setXY(int 1)(set X(i); setY(i);)   public synchronized Boolean check() (return x !=y;)   }   Under which conditions will check () return true when called from a different class?A Check() can never return true.B Check() can return true when setXY is called by multiple threads.C Check() can return true when multiple threads call setX and setY separately.D Check() can only return true if SyncTest is changed to allow x and y to be set separately.

单选题Which will declare a method that is available to all members of the same package and can be referenced  without an instance of the class?()A Abstract public void methoda();B Public abstract double methoda();C Static void methoda(double d1){}D Public native double methoda(){}E Protected void methoda(double d1){}