试题与答案

( )类应该是在Java中创建的任何异常的超类。A.Throwable B.Err

题型:单项选择题

题目:

( )类应该是在Java中创建的任何异常的超类。

A.Throwable

B.Error

C.Exception

D.NullPointerException

答案:

参考答案:C

解析: 本题是对线程机制的考查。选项A错误,Java异常系统的核心就是异常本身。Java中的异常是实际的对象——从类Throwable继承而来的类的实例。Throwable类的实例将在引发异常的时候创建,Throwable有两个子类 Error和Exception;选项B错误,Error的实例是Java运行时环境(虚拟机)中的内部错误,这些错误是非常少的,而且通常是致命的,不能对它们做太多的工作(无论捕获它们或者自己引发它们),但它们是存在的,这样Java在需要的时候可以使用它们;选项C正确,类 Exception它是在Java中创建的任何异常的超类;选项D错误,NullPointerException异常一般不会发生,除非尝试在设置其拥有一个对象之前使用变量。由此可知本题的答案是C。

试题推荐
题型:单项选择题

下列关于会计档案的说法中,不正确的是( )。

A.档案部门接收保管的会计档案,原则上应当保持原卷册的封装,即入档后的单位会计档案不得随意拆封

B.会计档案原件原则上不得借出,以确保单位档案的安全和完整,防止丢失。遇有特殊需要,经本单位会计机构负责人批准,可以提供查阅或者复制件,但必须办理登记手续

C.会计机构保管会计档案的专职人员不得由单位出纳人员担任

D.正在建设期间的建设单位会计档案,无论其是否保管期满,都不得销毁,必须妥善保管,等到项目办理竣工决算后按规定的交接手续移交给项目的接受单位进行妥善保管

查看答案
题型:单项选择题

Phyllis Wheatley is regarded as America’’s first black poet. She was born in Senegal, Africa, about 1753 and brought to America aboard a slave ship at about the age of seven. John and Susannah Wheatley bought her for three pounds at a slave auction in Boston in 1761 to be a personal servant of Mrs. Wheatley. The family had three other slaves, and all were treated with respect. Phyllis was soon accepted as one of the family, which included being raised and educated with the Wheatley’’s twin 15-year-old children, Mary and Nathaniel. At that time, most females, even from better families, could not read and write, but Mary was probably one of the best educated young women in Boston. Mary wanted to become a teacher, and in fact, it was Mary who decided to take charge of Phyllis’’s education. Phyllis soon displayed her remarkable talents. At the age of twelve she was reading the Greek and Latin classics and passages from the Bible. And eventually, Mrs. Wheatley decided Phyllis should become a Christian.At the age of thirteen Phyllis wrote her first poem. She became a Boston sensation after she wrote a poem on the death of the evangelical preacher George Whitfield in 1770. It became common practice in Boston to have "Mrs. Wheatley’’s Phyllis" read poetry in polite society. Mary married in 1771, and Phyllis later moved to the country because of poor health, as a teacher and caretaker to a farmer’’s three children. Mary had tried to interest publishers in Phyllis’’s poems but once they heard she was a Negro they weren’’t interested.Then in 1773 Phyllis went with Nathaniel, who was now a businessman, to London. It was thought that a sea voyage might improve her health. Thirty-nine of her poems were published in London as Poems on Various Subjects, Religious and Moral. It was the first book published by a black American. In 1775 Phyllis wrote a poem extolling the accomplishments of George Washington and sent it to him. He responded by praising her talents and inviting her to visit his headquarters. After both of her benefactors died in 1777, and Mary died in 1778, Phyllis was freed as a slave. She married in 1778, moved away from Boston, and had three children. But after the unhappy marriage, she moved back to Boston, and died in poverty at the age of thirty.

What does the passage mainly discuss

A.Slavery and the treatment of the black people in America.

B.The Wheatley family, including their slaves.

C.The life of America’s first black poet.

D.The achievements of Phyllis Wheatley.

查看答案
微信公众账号搜索答案