A class’s finalize() method CANNOT be invoked explicitly.
super.finalize() is called implicitly by any overriding finalize() method.
The finalize() method for a given object is called no more than once by the garbage collector.
The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
第1题:
Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()
第2题:
Object类的finalize()方法是如何声明的()。
第3题:
Which statements describe guaranteed behavior of the garbage collection and finalization mechanisms?()
第4题:
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()
第5题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第6题:
Which statement is true?()
第7题:
Which two statements are true about the hashCode method?()
第8题:
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.
第9题:
The tag handler must implement BodyTag.
The doAfterBody method is NOT called.
The setBodyContent method is called once.
It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
第10题:
Objects are deleted when they can no longer be accessed through any reference.
The finalize() method will eventually be called on every object.
The finalize() method will never be called more than once on an object.
An object will not be garbage collected as long as it is possible for an active part of the program to access it through a reference.
The garbage collector will use a mark and sweep algorithm.
第11题:
Line 33 must be called within a try block.
The exception thrown by method 1 in class A is not required to be caught.
The method declared on line 31 must be declared to throw a runtime exception.
On line 5 of class A,the call to method 2 of class B does not need to be placed in a try catch block.
第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 two are true?()
第14题:
Which statements concerning the methods notify() and notifyAll() are true?
第15题:
Under which circumstances will a thread stop?()
第16题:
Which of the following statements about variables and scope are true?()
第17题:
Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()
第18题:
Which three statements are true?()
第19题:
The method waitforId() in class MediaTracker is called.
The run() method that the thread is executing ends.
The call to the start() method of the Thread object returns.
The suspend() method is called on the Thread object.
The wait() method is called on the Thread object.
第20题:
A class’s finalize() method CANNOT be invoked explicitly.
super.finalize() is called implicitly by any overriding finalize() method.
The finalize() method for a given object is called no more than once by the garbage collector.
The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.
第21题:
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.
第22题:
public void finalize()
protected int finalize()
C.protected void finalize(int
protected void finalize()throws Throwable
第23题:
The charAt() method of the String class.
The toUpperCase() method of the String class.
The replace() method of the String class.
The reverse() method of the StringBuffer class.
The length() method of the StringBuffer class.
第24题:
The doStartTag method is called once.
The doAfterBody method is NOT called.
The EVAL_PAGE constant is a valid return value for the doEndTag method.
The SKIP_PAGE constant is a valid return value for the doStartTag method.
The EVAL_BODY_BUFFERED constant is a valid return value for the doStartTag method.