The Thread.sleep() method can take t1 as an argument.
The Object.notify() method can take t1 as an argument.
The Thread.yield() method can take t1 as an argument.
The Thread.setPriority() method can take t1 as an argument.
The Object.notify() method arbitrarily chooses which thread to notify.
第1题:
10. class Foo { 11. static void alpha() { /* more code here */ } 12. void beta() { /* more code here */ } 13. } Which two are true?()
第2题:
Which two of statements are true?()
第3题:
Given that t1 is a reference to a live thread, which is true?()
第4题:
Which two can directly cause a thread to stop executing?()
第5题:
Which two can be used to create a new Thread?()
第6题:
Which three statements are true?()
第7题:
Exiting from a synchronized block.
Calling the wait method on an object.
Calling the notify method on an object.
Calling the notifyAll method on an object.
Calling the setPriority method on a thread object.
第8题:
第9题:
Instances of class Thread have a method called notify().
A call to the method notify() will wake the thread that currently owns the monitor of the object.
The method notify() is synchronized.
The method notifyAll() is defined in class Thread.
When there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.
第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 Thread.sleep() method can take t1 as an argument.
The Object.notify() method can take t1 as an argument.
The Thread.yield() method can take t1 as an argument.
The Thread.setPriority() method can take t1 as an argument.
The Object.notify() method arbitrarily chooses which thread to notify.
第12题:
Switches take less time to process frames than hubs take.
Switches do not forward broadcasts.
Hubs can filter frames.
Using hubs can increase the amount of bandwidth available to hosts.
Switches increase the number of collision domains in the network.
第13题:
What is the name of the method that threads can use to pause their execution until signalled to continue by another thread? () Fill in the name of the method (do not include a parameter list).
第14题:
Which statements concerning the methods notify() and notifyAll() are true?
第15题:
It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?()
第16题:
What can cause a thread to become non-runnable?()
第17题:
Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()
第18题:
Which two statements are true about the hashCode method?()
第19题:
Mark the method with the keyword public.
Mark the method with the keyword protected.
Mark the method with the keyword private.
Mark the method with the keyword package.
Do not mark the method with any accessibility modifiers.
第20题:
Exiting from a synchronized block.
Calling the wait method on an object.
Calling the notify method on an object.
Calling the notifyAll method on an object.
第21题:
Extend java.lang.Thread and override the run method.
Extend java.lang.Runnable and override the start method.
Implement java.lang.thread and implement the run method.
Implement java.lang.Runnable and implement the run method.
Implement java.lang.Thread and implement the start method.
第22题:
New medicines that can get rid of the fear in the brain.
New psychological methods that can help people not fear.
New medicines that can remove phobia in six-hour period.
The method that can help people overcome phobia by facing fearful things.
第23题:
Foo.beta() is a valid invocation of beta().
Foo.alpha() is a valid invocation of alpha().
Method beta() can directly call method alpha().
Method alpha() can directly call method beta().
第24题:
It can be invoked only from the doGet or doPost methods.
It can be used independently of the getRemoteUser method.
Can return true even when its argument is NOT defined as a valid role name in the deployment descriptor.
Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.