a++;
b++;
c++;
d++;
e++;
第1题:

A.Foo { public int bar() { return 1; }
B.new Foo { public int bar() { return 1; }
C.new Foo() { public int bar() { return 1; }
D.new class Foo { public int bar() { return 1; }
第2题:
Which two statements are true about the hashCode method?()
第3题:
Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?() public class Q4a39 { int a = 1; int b = 1; int c = 1; class Inner { int a = 2; int get() { int c = 3; // insert statement here return c; } } Q4a39() { Inner i = new Inner(); System.out.println(i.get()); } public static void main(String args[]) { new Q4a39(); } }
第4题:
Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?() class A {} class B extends A {} class C extends A {} public class Q3ae4 { public static void main(String args[]) { A x = new A(); B y = new B(); C z = new C(); // insert statement here } }
第5题:
Which the following two statements are true?()
第6题:
Energy can be created or destroyed
Energy may not be transformed
The total quantity of energy in the universe is always the same
None of the above
第7题:
@do
@for
@while
@dowhile
第8题:
a++;
b++;
c++;
d++;
e++;
第9题:
x = y;
z = x;
y = (B) x;
z = (C) y;
y = (A) y;
第10题:
c = b;
c = this.a;
c = this.b;
c = Q4a39.this.a;
c = c;
第11题:
Point p = new Point();
Line.Point p = new Line.Point();
The Point class cannot be instatiated at line 15.
Line l = new Line() ; l.Point p = new l.Point();
第12题:
It can reach no further than human voice.
It can reach a large audience.
It is rapid and efficient.
It can be trusted.
第13题:
A.15.234.118.63
B.92.11.178.93
C.134.178.18.56
D.192.168.16.87
E.201.45.116.159
F.217.63.12.192
第14题:
Which two statements are true?()
第15题:
Several @functions can execute multiple statements. Which one of the following initializes a variable and can increment in during the operation?()
第16题:
Which two statements about the best effort model for QoS are true?()
第17题:
Given the following code fragment: public void create() { Vector myVect; myVect = new Vector(); } Which of the following statements are true?()
第18题:
double getSalesAmount() { return 1230.45; }
public double getSalesAmount() { return 1230.45; }
private double getSalesAmount() { return 1230.45; }
protected double getSalesAmount() { return 1230.45; }
第19题:
Direction d = NORTH;
Nav.Direction d = NORTH;
Direction d = Direction.NORTH;
Nav.Direction d = Nav.Direction.NORTH;
第20题:
FileOutputStream has no constructors matching the given arguments.
An IOExeception will be thrown if a file named data already exists.
An IOExeception will be thrown if a file named data does not already exist.
If a file named data exists, its contents will be reset and overwritten.
If a file named data exists, output will be appended to its current contents.
第21题:
An inner class may be declared as static.
An anonymous inner class can be declared as public.
An anonymous inner class can be declared as private.
An anonymous inner class can extend an abstract class.
An anonymous inner class can be declared as protected.
第22题:
An inner class may be declared as static.
An anonymous inner class can be declared as public.
An anonymous inner class can be declared as private.
An anonymous inner class can extend an abstract class.
An anonymous inner class can be declared as protected.
第23题:
The declaration on line 2 does not allocate memory space for the variable myVect.
The declaration on line 2 allocates memory space for a reference to a Vector object.
The statement on line 2 creates an object of class Vector.
The statement on line 3 creates an object of class Vector.
The statement on line 3 allocates memory space for an object of class Vector.
第24题:
The hashCode method for a given class can be used to test for object equality and object inequality for that class.
The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.
The hashCode method for a given class can be used to test for object inequality, but NOT object equality, for that class.
The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.
The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.