大家来看几道题目

ww_stone 2006-02-20 10:55:24
请大家给出下面题目的答案与分析,谢谢
1. Which would be the most suitable for storing data elements that must not appear in the store more than once, if searching is not a priority?
A. java.util.Collection
B. java.util.List
C. java.util.Set
D. java.util.Map
E. java.util.Vector
F. java.util.HashSet


2. Which one of the following statements is true? (choose all that apply)
A. Transient methods may not be overridden.
B. Transient classes may not be serialized.
C. Transient variables must be static.
D. Transient variables are not serialized.


3. Which of the following are true. (choose all that apply)
a String is not thread-safe
b StringBuffer should be used when localization is required
c String is immutable while StringBuffer is not.
d StringBuffer is the buffer for String.
e String and stringBuffer are identical.


4. How many threads can potentially access one servlet instance
a always only one
b multiple
c exactly two: one created by the JVM another by the servlet container
d zero
e wrong question.



...全文
153 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
cdredfox 2006-02-22
  • 打赏
  • 举报
回复
AIGPTchina 2006-02-22
  • 打赏
  • 举报
回复
panzi667 2006-02-20
  • 打赏
  • 举报
回复
UP

51,409

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧