Your browser does not support JavaScript!

Which of the following is a valid statement to accept int input? Let us assume that we have declared scan as Scanner.

  • int num = scannextLong();
  • short num = scannextInt();
  • short num = scannextShort();
  • int num = scangetInt();
  • None of the above Correct
Feedbacks
MoralRabbit - 1 year ago
Downvoted this question
BrightGuanaco - 1 year ago
Downvoted this question
NumerousPerch - 1 year ago
Upvoted this question
IntimateDog - 1 year ago
Downvoted this question
NeatMink - 1 year ago
Downvoted this question
EvilGecko - 1 year ago
Downvoted this question
CommunistCardinal - 1 year ago
Upvoted this question
TiredSilverfish - 1 year ago
Downvoted: Was not in the choices
Similar ITE-6104 questions