Oracle
1Z0-804 · Question #128
1Z0-804 Question #128: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #128. 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 thread togenerate 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()*100+1;
- Dint i = (int) Math.random(1, 101);
- Eint i = new random().nextInt(100)+1;
Unlock 1Z0-804 to see the answer
You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 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.