您当前的位置: 首页 >  星拱北辰

【面向对象】面向对象程序设计测试题8-对象之间one-to-many关系测试题

星拱北辰 发布时间:2019-12-01 14:36:17 ,浏览量:2

Test8:对象之间one-to-many关系测试题

问题 1
A collection typically models a _____ relationship.
A. many-to-many
B. zero-to-one
C. one-to-many
D. one-to-one
答案:
C

问题 2
Consider the following method call, where c is an instance of the class java.util.ArrayList.

c.size();  

This method call returns the number of
A. times that the method c.add has been called
B. elements in the ArrayList represented by c
C. ArrayList objects that have been instantiated
D. bytes used by c
答案:
B

问题 3
请看下图:

关注
打赏
查看更多评论

星拱北辰

暂无认证

  • 2浏览

    0关注

    1198博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录