Oracle
1Z0-805 · Question #49
1Z0-805 Question #49: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #49. The question stem and answer options stay visible for context.
Question
Which statement creates a low-overhead, low contention random number generator that is isolated to a thread to generate a random number between 1 and 100?
Options
- Aint i = ThreadLocalRandom.current().nextInt (1, 101);
- Bint i = ThreadSaferandom.current().nextInt(1, 101);
- Cint i = (int) Math.random()*.nextInt(1, 101);
- Dint i = (int) Match.random (1, 101);
- Eint i = new Random (). nextInt (100)+1;
Unlock 1Z0-805 to see the answer
You've previewed enough free 1Z0-805 questions. Unlock 1Z0-805 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.