notify
valueOf
toString
wait
第1题:
下列各类函数中,不是类的成员函数的是( )。
A.构造函数
B.抽象类
C.派生类
D.以上都不对
第2题:
( 16 )下列方法中,不属于 Throwable 类的方法是
A ) printMessage
B ) getMessage
C ) toString
D ) fillStackTrace
第3题:
以下关于线程的运行,暂停,结束的描述中,错误的是()。
第4题:
以下哪些方法在Object类中定义()。
第5题:
为了使得System.out.println()输出对象引用的时候得到有意义的信息,我们应该覆盖Object中的哪个方法?()
第6题:
Which two can directly cause a thread to stop executing?()
第7题:
Which statement is true?()
第8题:
equals
hashCode
toString
notify
第9题:
Object类提供了wait,notify,notifyAll等函数用于线程间同步
Object类提供了clone,compare,delete,add,insert等函数用于对对象进行操作
Object类是所有自定义类的直接或间接父类,但不是系统类的父类
Object类定义了一些每个类都应该有的基本的成员变量和成员函数
Object类是其它一切类的直接或间接父类
第10题:
If only one thread is blocked in the wait method of an object, and another thread executes the modify on that same object, then the first thread immediately resumes execution.
If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, it is still possible that the first thread might never resume execution.
If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, then the first thread definitely resumes execution as a direct and sole consequence of the notify call.
If two threads are blocked in the wait method of one object, and another thread executes the notify method on the same object, then the first thread that executed the wait call first definitely resumes execution as a direct and sole consequence of the notify call.
第11题:
object类中定义了一些重要的成员函数和变量,以方便JAVA类的使用
object类是所有其他JAVA类的直接或间接父类
object类是一个非常特殊的“虚拟”类,也就是说,你只能丛object类中派生出其他类,但不能创建一个object类的对象。
如果一个类已经有了父类,那么这个类同时继承了object类,也就是说,这时候这个类实际上有2个父类
由于JAVA中的类是单继承的,因此所有的类以object类为根形成了一棵继承树
第12题:
构造函数
析构函数
友元函数
复制构造函数
第13题:
下列方法中,不属于类Strin9的方法是( )。
A.toLowerCase
B.valueOf
C.charAt
D.append
第14题:
java中下面哪些是Object类的方法()。
第15题:
以下关于Object类的描述中,错误的是()。
第16题:
What happens when thread X executes a wait() method on object A, without owning object A’s lock?()
第17题:
以下函数中,不是Object类所有的是()
第18题:
What can cause a thread to become non-runnable?()
第19题:
关于object类,以下描述中正确的有()
第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.
Calling the setPriority method on a thread object.
第21题:
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.
第22题:
notify
valueOf
toString
wait
第23题:
Compilation fails.
An exception is thrown.
The wait() method has no effect.
Thread X receives the lock immediately.
Object A moves the thread to the wait pool.
第24题:
equals(Object obj)
getClass()
toString()
trim()