java的几道选择题,快考试了。
7.Ifacontainerhasbeenresized,whichofthefollowinglayoutmanagerdidnotchangetheinternalc...
7. If a container has been resized, which of thefollowing layout manager did not change the internal components' size?
A. CardLayout B. FlowLayout
C. BorderLayout D. GridLayout
8. Which is the right statement about exception handling?
A. In java, all exceptions are necessary to becaught and handled.
B. The “catch”statement catches exception by type-matching.
C. In the “try-catch-finally” structure, theprogram will exit after exception handling.
D. Exception is a kind of errors, and it shouldbe absolutely avoided in programs.
9. The following statements are about type-casting, which one iscorrect?
A. A reference variable of a class can only be assigned to an objectof its first level sub-classes of this class.
B. An object can not be casted to the type of another class which hasno inheritance relationship with the object’s original class.
C. A child class’s reference variable can be assigned to an object of itsparent class.
D. There is only explicit casting, but no implicit casting.
这套试卷没有答案,第八题,本人觉得选B ,另外两题就不清楚 展开
A. CardLayout B. FlowLayout
C. BorderLayout D. GridLayout
8. Which is the right statement about exception handling?
A. In java, all exceptions are necessary to becaught and handled.
B. The “catch”statement catches exception by type-matching.
C. In the “try-catch-finally” structure, theprogram will exit after exception handling.
D. Exception is a kind of errors, and it shouldbe absolutely avoided in programs.
9. The following statements are about type-casting, which one iscorrect?
A. A reference variable of a class can only be assigned to an objectof its first level sub-classes of this class.
B. An object can not be casted to the type of another class which hasno inheritance relationship with the object’s original class.
C. A child class’s reference variable can be assigned to an object of itsparent class.
D. There is only explicit casting, but no implicit casting.
这套试卷没有答案,第八题,本人觉得选B ,另外两题就不清楚 展开
3个回答
展开全部
7、B (这种布局只会改变控件的位置,不会改变控件的大小)
8、B
9、C(给你举个例子,就是创建了Person这个类和Chinese这个类,其中这个Chinese类是从Person类继承来的,然后创建对象时,像这样:先Chinese c=new Chinese();然后Person person = c;
这种赋值是成立的 可以这样理解,你要的是人这个对象,我给你一个中国人这个对象)。
8、B
9、C(给你举个例子,就是创建了Person这个类和Chinese这个类,其中这个Chinese类是从Person类继承来的,然后创建对象时,像这样:先Chinese c=new Chinese();然后Person person = c;
这种赋值是成立的 可以这样理解,你要的是人这个对象,我给你一个中国人这个对象)。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
..........问下,大学里JAVA考试笔试都是英文卷子么?!
追问
我那个专业java是英文考试来的
追答
0 0不会吧。。。
计算机专业?
我也准备去读自考的计算机本科。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
7.B
8.B
9.C
8.B
9.C
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |