第1题:
第2题:
第3题:
第4题:
package foo; public class Outer ( public static class Inner ( ) ) Which statement is true? ()
第5题:
public class X { public X aMethod() { return this;} } public class Y extends X { } Which two methods can be added to the definition of class Y?()
第6题:
Which two code fragments will execute the method doStuff() in a separate thread?()
第7题:
It can be any class.
No class has access to base.
The class must belong to the geometry package.
The class must be a subclass of the class Hypotenuse.
第8题:
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.
第9题:
An instance of the Inner class can be constructed with “new Outer.Inner ()”
An instance of the inner class cannot be constructed outside of package foo.
An instance of the inner class can only be constructed from within the outer class.
From within the package bar, an instance of the inner class can be constructed with “new inner()”
第10题:
Multicasting
Proxy server
NAT
Subnetting
第11题:
After the cell-phone ban is ended, students can use their phones during class.
The cell-phone ban is equally enforced in all public schools.
The cell-phone ban was put into place in 2008 under mayor Bill de Blasio.
A phone-storage industry has appeared outside the 88 metal-detector campuses.
第12题:
prohibit farmers from hunting foxes
forbid hunting foxes with dogs
stop hunting wild animals in the countryside
prevent large-scale fox hunting
第13题:
第14题:
第15题:
第16题:
Which two code fragments will execute the method doStuff() in a separate thread?()
第17题:
package geometry; public class Hypotenuse { public InnerTriangle it = new InnerTriangle(); class InnerTriangle { public int base; public int height; } } Which is true about the class of an object that can reference the variable base? ()
第18题:
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.
第19题:
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.
第20题:
第21题:
Compilation fails.
An instance of the Inner class can be constructed with “new Outer.Inner()”.
An instance of the Inner class cannot be constructed outside of package foo.
An instance of the Inner class can be constructed only from within the Outer class.
From within the package foo, and instance of the Inner class can be constructed with “new Inner()”.
第22题:
a report of scientific progress to the general public.
an academic discussion of new possibilities in genetic science.
an argument for using pigs over sheep as transplant materials.
a look into advantages and disadvantages of cloning technology.
第23题:
The treaty calls for new labeling for tobacco products.
The treaty calls for an advertising ban.
The treaty calls for outdoor air controls to reduce second-hand smoking.
The treaty calls for stronger legislation against tobacco smuggling.