可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Which statement is tru


Which statement is true?()

  • ACompilation fails.
  • BAn exception is thrown at runtime.
  • CSynchronizing the run() method would make the class thread-safe.
  • DThe data in variable "x" are protected from concurrent access problems.
  • EDeclaring the doThings() method as static would make the class thread-safe.
  • FWrapping the statements within doThings() in a synchronized(new Object()){} block would make the class thread-safe.
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、Which statement is tru

Which statement is true about a whole consistent database backup on a database running in ...

2、Which statement is tru

Which statement is true about the class of an object that can reference the variable base...

3、Which statement is tru

Which statement is true?()AThe time to find the value from HashMap with a Person key de...

4、Which statement is tru

Which statement is true?()A If only one thread is blocked in the wait method of an&ensp...

5、Which statement is tru

Which statement is true?()ACompilation succeeds.Bclass A does not compile.CThe method declared on line...

6、Which statement is tru

Which statement is true?()AThe output could be 5-1,6-1,6-2,5-2BThe output could be 6-1,6-2,5-1,5-2CTh...