Given a class whose instances, when found in a collection of objects, are sorted by using the compare To method, which two statements are true?()
第1题:
A. any class
B. only the Target class
C. any class in the test package
D. any class that extends Target
第2题:
A.Line 33 must be called within a try block.
B.The exception thrown by method1 in class A is not required to be caught.
C.The method declared on line 31 must be declared to throw a RuntimeException.
D.On line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.
第3题:
A、Having given
B、To give
C、Giving
D、Given
第4题:
Given that you have a class B IP address network range, which of the subnet masks below will allow for 100 subnets with 500 usable host addresses per subnet?
A.255.255.0.0
B.255.255.224.0
C.255.255.254.0
D.255.255.255.0
E.255.255.255.224
第5题:
A.It can be any class.
B.No class has access to base.
C.The class must belong to the geometry package.
D.The class must be a subclass of the class Hypotenuse.
第6题:
A.
B.
C.
D.
E.
F.
第7题:
A.public class MinMax<?> {
B.public class MinMax<? extends Number> {
C.public class MinMax<N extends Object> {
D.public class MinMax<N extends Number> {
E.public class MinMax<? extends Object> {
F.public class MinMax<N extends Integer> {
第8题:
Exhibit:You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time. You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit. Which two actions should you perform?()
A. Attach the Category attribute class to the controls class definition. Set its value to UserAddress. Mark the class as public.
B. Attach the Browsable attribute class to each property in the group. Set its value to True. Mark the property as private.
C. Attach the Category attribute class to each property in the group. Set its value to UserAddress. Mark the property as public.
D. Attach the Description attribute class to each property in the group. Set each value to a description of the given property.
E. Attach the DefaultProperty attribute class to each property in the group. Set each value to a description of the given property.
第9题:
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; }
第10题:
Which two statements are true about the hashCode method?()