多项选择题X 纠错
A.For non-negative values of the left operand, the >> and >>> operators will have the same effect.
B.The result of (-1 >> 1) is 0.
C.The result of (-1 >>> 1) is -1.
D.The value returned by >>> will never be negative as long as the value of the right operand is equal to or greater than 1.
E.When using the >> operator, the leftmost bit of the bit representation of the resulting value will always be the same bit value as the leftmost bit of the bit representation of the left operand.
你可能喜欢
多项选择题
A.a++;
B.b++;
C.c++;
D.d++;
E.e++;
单项选择题
A.java SmallProg
B.avac SmallProg
C.javac SmallProg.java
D.java SmallProg main
单项选择题
A.They pass messages by modifying each other’s member variables
B.They pass messages by modifying the static member variables of each other’s classes
C.They pass messages by calling each other’s instance member methods
D.They pass messages by calling static member methods of each other’s classes.
多项选择题
A.One object is created
B.Two objects are created
C.Three objects are created
D.One reference variable is created
E.Two reference variables are created
F.Three reference variables are created.
单项选择题
A.Code marked with (1) is a constructor
B.Code marked with (2) is a constructor
C.Code marked with (3) is a constructor
D.Code marked with (4) is a constructor
E.Code marked with (5) is a Constructor
单项选择题
A.is also called a static member
B.is always a variable
C.is never a method
D.belongs to a single instance, not to the class as a whole
E.always represents an operation
单项选择题
A.what classes are instantiated from.
B.an instance of a class.
C.a blueprint for creating concrete realization of abstractions.
D.a reference to an attribute.
E.a variable.
单项选择题
A.an implementation of an abstraction.
B.an attribute defining the property of a particular abstraction.
C.a category of objects.
D.an operation defining the behavior for a particular abstraction.
E.a blueprint for making operations.
单项选择题
A. Just after line 5.
B. Just after line 6.
C. Just after line 7.
D. Just after line 8(that is, as the method returns).
多项选择题
A. void setVar (int a, int b, float c){ x = a; y = b; z = c; }
B. public void setVar(int a, float c, int b) { setVar(a, b, c); }
C. public void setVar(int a, float c, int b) { this(a, b, c); }
D. public void setVar(int a, float b){ x = a; z = b; }
E. public void setVar(int ax, int by, float cz) { x = ax; y = by; z = cz; }