Solved

Consider the Following Code Snippet: Scanner in = New Scanner

Question 73

Multiple Choice

Consider the following code snippet: Scanner in = new Scanner(. . .) ;
Int ageValue = in.nextInt() ;
If there is no integer number appearing next in the input, what will occur?


A) ageValue will contain a null value.
B) ageValue will contain a zero.
C) ageValue will contain whatever characters are encountered.
D) An exception will occur.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions