请教几道scjp问题

sngnr 2002-03-03 07:32:02

1.which is true?
A.An annoymous innerclass can implement multiple interfaces
B.An annonymous innerclass can access the final variable in any enclosing scope
C.Construction of an instance of a static innerclass requires an instance of the enclosing outer class

2. any statment that may throw an Exception must be enclosed in a try block.这句对吗?

3.匿名内部类可以实现多个interfaces吗?

4.(325) which two cannot directly causea thread to stop executing?
A.exiting from a synchronized block
B.calling the wait method
C calling the notify method
D.calling a read method from a InputStream object
E.calling the setPriority method on a Thread object

5(334)You are going to read some rows one by one froma file that is stored in your hard drive.
How do u do it?
A.BufferedReader
B InputStreamReader
C.FileReader
...全文
57 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,407

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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