问题 单项选择题

自定义表格类中的model部分应实现的接口是

A.AbstractTableModel

B.JTable

C.TableModel

D.TableModelable

答案

参考答案:C

解析:表格(JTable)是Swing新增加的构件,主要功能是把数据以二维表格的形式显示出来。AbstractTableModel类的对象负责表格大小的确定(行、列)、内容的填写、赋值、表格单元更新检测等一切跟表格内容有关的属性与操作。JTable类生成的对象以TableModel为参数,并负责将TableModel对象中的数据以表格形式显示出来,所以应实现的接口是TableModel。

阅读理解

 阅读理解(共15小题;每小题2分,满分30分)

阅读下列短文,从每题所给的四个选项(A、B、C和D)中,选出最佳选项,并在答题卡上将该项涂黑。

Education for Japanese children is free for the first nine years and all children must go to school for six years of primary schooling and three years of secondary schooling. In the primary and secondary school, about 99.9% of school-age children are present. School usually begins at 8 o’clock in the morning and ends at 3 o’clock in the afternoon on weekdays and at noon on Saturdays. The school year begins in April and ends in March. There is a summer holiday in August and a winter holiday during the New Year season.

After nine years of schooling, students can enter the three-year high school by passing an examination and by paying a small charge each year. After high school, students can go on to study at different kinds of colleges, usually for four years. There are also two-year junior colleges.

小题1: The passage mainly discusses _____________.

A.colleges in Japan

B.free education in Japan

C.education in Japan

D.school time in Japan小题2:If you want to go to high school in Japan, you must ______________________.

A.pay a small amount of money

B.study at primary and secondary school for 9 years

C.take part in the exam and pay a little money

D.pass the exam and pay a little money小题3: What is not mentioned in the passage?

A.Types of colleges.

B.Times for schooling

C.The teaching staff(教职员工)

D.The number of children attending schools小题4:How many days do the Japanese students have to go to school every week?

A.Two days

B.Four and a half days

C.Five days

D.Five and a half days

单项选择题