The class implements java.lang.Comparable.
The class implements java.util.Comparator.
The interface used to implement sorting allows this class to define only one sort sequence.
The interface used to implement sorting allows this class to define many different sort sequences.
第1题:
Which two demonstrate an “is a” relationship?()
第2题:
Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()
第3题:
class A { } class Alpha { private A myA = new A(); void dolt( A a ) { a = null; } void tryIt() { dolt( myA ); } } Which two statements are correct?()
第4题:
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?()
第5题:
You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()
第6题:
The equals() method determines if reference values refer to the same object.
The == operator determines if the contents and type of two separate objects match.
The equals() method returns true only when the contents of two objects match.
The class File overrides equals() to return true if the contents and type of two separate objects match.
第7题:
Cat is-a Jumper
Cat is-a Animal
Dog is-a Jumper
Dog is-a Animal
Beagle has-a Jumper
Cat has-a Animal
Beagle has-a Tail
第8题:
Apply the OnDeserializing attribute to the ProcessChildren method.
Specify that MyClass implements the IDeserializationCallback interface.
Specify that MyClass inherits from the ObjectManager class.
Apply the OnSerialized attribute to the ProcessChildren method.
Create a GetObjectData method that calls ProcessChildren.
Create an OnDeserialization method that calls ProcessChildren.
第9题:
public interface Person {} Public class Employee extends Person {}
public interface Shape {} public interface Rectangle extends Shape {}
public interface Color {} public class Shape { private Color color; }
public class Species {} public class Animal { private Species species; }
interface Component {} Class Container implements Component {private Component [] children;
第10题:
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 the elements within that set.
The hashCode method for a given class can be used to test for object inequality, but NOT objecte quality, 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.
第11题:
The class implements java.lang.Comparable.
The class implements java.util.Comparator.
The interface used to implement sorting allows this class to define only one sort sequence.
The interface used to implement sorting allows this class to define many different sort sequences.
第12题:
The tag is invoked without a body.
The doTAb method throws an exception.
The
The tag is called with the attribute skip-body=true
第13题:
Which of the following statements are true?()
第14题:
You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
第15题:
Which statement is true?()
第16题:
Which two statements are true about the hashCode method?()
第17题:
You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects.MyClass objects will be serializable.You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform?()
第18题:
The RE controls and monitors the chassis
The RE manages the Packet Forwarding Engine (PFE)
The RE receives a copy of the forwarding table from the forwarding plane
The RE implements class of service (COS)
第19题:
public interface Person { } public class Employee extends Person { }
public interface Shape { } public class Employee extends Shape { }
public interface Color { } public class Employee extends Color { }
public class Species { } public class Animal (private Species species;)
interface Component { } Class Container implements Component ( Private Component[ ] children; )
第20题:
The class implements java.lang.Comparable.
The class implements java.util.Comparator.
The interface used to implement sorting allows this class to define only one sort sequence.
The interface used to implement sorting allows this class to define many different sort sequences.
第21题:
There are no instanced of A that will become eligible for garbage collection.
Explicitly setting myA to null marks that instance to be eligible for garbage collection.
Any call on tryIt() causes the private instance of A to be marked for garbage collection.
Private instances of A become eligible for garbage collection when instances of Alpha become eligible for garbage collection.
第22题:
The RE controls and monitors the chassis.
The RE manages the Packet Forwarding Engine (PFE).
The RE receives a copy of the forwarding table from the forwarding plane.
The RE implements class of service (COS).
第23题:
IDictionary
IComparable
IComparer
IEqualityComparer
第24题:
The default constructor initializes method variables.
The default constructor invokes the no-parameter constructor of the superclass.
The default constructor initializes the instance variables declared in the class.
If a class lacks a no-parameter constructor,, but has other constructors, the compiler creates a default constructor.
The compiler creates a default constructor only when there are no other constructors for the class.