aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals
  • 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(), hence this is the correct answer.

Keep practicing — related questions

  • Which method of the BufferedReader class is used to read the characters from the console in java?
  • Which of the following methods is used to return the primitive value of the boolean object in JavaScript?
  • Which of the following is true about wrapper classes in Java?
  • Which of the following methods of the dictionary class in collection framework returns the value to which t...
  • Which of the following methods is used in java to format an HTML page to send back to web clients, who make...
  • Which of the following classes of coelenterates form(s) corals?
  • Which of the following data dictionary views should be used to get a list of object privileges for all data...
  • Which of the following layout managers in Java is used to manage the components in the directions like nort...
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