READ Free Dumps For Oracle- 1z0-804
Question ID 3581 | Which statement creates a low overhead, low-contention random number generator that is isolated to thread to generate a random number between 1 and 100? |
Option A | A. int i = ThreadLocalRandom.current().nextInt(1, 101); |
Option B | B. int i = ThreadSafeRandom.current().nextInt(1, 101); |
Option C | C. int i = (int) Math.random()*100+1; |
Option D | D. int i = (int) Math.random(1, 101); |
Option E | E. int i = new random().nextInt(100)+1; |
Correct Answer | E |
Question ID 3582 | |
Option A | A. 1 1 1 1 1 |
Option B | B. 1 2 3 4 5 |
Option C | C. 0 1 2 3 4 |
Option D | D. 0 1 4 3 4 |
Correct Answer | A |