Q. What will be the output of the following Java code snippet?
int a = random.nextInt(15) + 1;
int a = random.nextInt(15) + 1;
β
Correct Answer: (A)
Random number between 1 to 15, including 1 and 15