nerdexam
Oracle

1Z0-805 · Question #95

Given the interface: Public interface Idgenerator { Oracle 1Z0-805 Exam int getNextId(); } Which class implements IdGenerator in a thread-safe manner, so that no threads can get a duplicate id value…

The correct answer is D. Public class Generator Implements IdGenerator {. Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test…

Concurrency

Question

Given the interface:

Public interface Idgenerator { Oracle 1Z0-805 Exam int getNextId(); } Which class implements IdGenerator in a thread-safe manner, so that no threads can get a duplicate id value current access?

Options

  • APublic class generator Implements IdGenerator {
  • BPublic class Generator Implements idGenerator {
  • CPublic class Generator Implements IdGenerator {
  • DPublic class Generator Implements IdGenerator {
  • EPublic class Generator Implements IdGenerator {

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    14% (4)
  • D
    76% (22)
  • E
    7% (2)

Explanation

Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test, First Pass. Help you to pass any IT Certification exams at the first try. You can reach us at any of the email addresses listed below. Any problems about IT certification or our products, you could rely upon us, we will give you satisfactory answers in 24 hours.

Topics

#thread safety#synchronized#concurrent access#interface implementation

Community Discussion

No community discussion yet for this question.

Full 1Z0-805 Practice