aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Basics and AWT Programming
  • Which of the following are not the methods of the scanner...
Multiple choice

Which of the following are not the methods of the scanner class object in java?

  1. Next()

  2. nextLine()

  3. nextInt()

  4. nextChar()

  5. nextLong()

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

There is no function defined in Scanner class to take character input. So, there is no function named nextChar(). So, this is the correct answer.

Keep practicing — related questions

  • Which of the following methods cannot be used with the object of String class?
  • Which of the following methods cannot be invoked with the object of ConcurrentHashMap class?
  • Which of the following access modifiers is used so that the method it is assigned to become a method of the...
  • Which of the methods are not present in the JLabel class in java?
  • Which of the following methods are invalid in java GUI?
  • Which of the following methods cannot be invoked with the Object of TreeMap Constructor?
  • Which of the following statements can be directly inferred from the above passage? Questions are based on t...
  • According to the passage, which of the following is an accurate statement about Object with Red Discs? Dire...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy