MCQ
Using ………….. method integer values can be accepted using scanner class.
  • nextInt() 
  • B
    nextFloat() 
  • C
    nextNumber() 
  • D
    nextperseFloat()

Answer

Correct option: A.
nextInt() 
(A) nextInt()

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free