aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java I/O and Servlets
  • Which exception is thrown by the read() method of Input s...
Multiple choice

Which exception is thrown by the read() method of Input stream class?

  1. Exception

  2. Read Exception

  3. IO Exception

  4. None of these

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

The read() method in the InputStream class is declared to throw an IOException because I/O operations are prone to failure.

Keep practicing — related questions

  • Name the exception thrown by read method of the InputStream class
  • Which of the following stream classes in Java is an input stream that reads data from a file?
  • The stream class 'File Input Stream' throws a/an ____ exception.
  • Which of the following methods of InputStream class returns the number of bytes that are available for read...
  • Which of the following stream classes is an input stream that contains methods for reading the java standar...
  • To read from file, we can use a version of read () that is defined in the class. Name it.
  • Which of the following methods are defined in InputStream class of Bytes Stream?
  • Which of the following methods is/are defined in the InputStream class of Bytes Stream?
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