Question: Q15: Which of the following is not a Java primitive type? 1. char 2. byte 3. real 4. double Answer: Q16: Given the Java statement
Q15: Which of the following is not a Java primitive type? 1. char 2. byte 3. real 4. double Answer: Q16: Given the Java statement int number1 = input.nextInt(): in which input is a Scanner, which of the following occurs if the user does not enter a valid int value? 1. A compilation error occurs. 2. The program continues executing and assigns the value 0 to number1. 3. A runtime logic error occurs. 4. None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
