ICSE Class 10 Computer Applications Question 5 of 30

Solved Sample Paper 4 — Question 5

Back to all questions
5
Question

Question 1(v)

Which of the following is not a valid method of the Scanner class?

  1. next( )
  2. nextInt( )
  3. nextLong( )
  4. nextNumber( )
Answer

nextNumber( )

Reason — nextNumber( ) is not a valid method of the Scanner class.