Question: JAVA/OOP2 What does the following code produce? Random rand= new Random(); int a = rand.nextInt(10) +5; Point p1= new Point (a, a); a Point object
JAVA/OOP2

What does the following code produce? Random rand= new Random(); int a = rand.nextInt(10) +5; Point p1= new Point (a, a); a Point object with any random x and y coordinates a Point object with equivalent randomx and y coordinates in the range [5, 14] a Point object with equivalent random x and y coordinates in the range (5, 15) O a Point object with equivalent random x and y coordinates in the range [5, 16] a Point object with equivalent random x and y coordinates in the range (5, 16)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
