aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java I/O Streams and String Handling
  • Which of the following methods are defined in OutputStrea...
Multiple choice

Which of the following methods are defined in OutputStream class?

  1. flush()

  2. write(byte[ ] b)

  3. write(byte[ ] b , int offset, int len) :-

  4. Both 1 and 3

  5. All of these

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

This is the correct answer because as I explained all of the given methods are defined in the OutputStream class.

Keep practicing — related questions

  • Which of the following methods is/are defined in InputStream class of Bytes Stream?
  • Which of the following methods is/are defined in the InputStream class of Bytes Stream?
  • Which of the following methods are defined in InputStream class of Bytes Stream?
  • Which of the following methods is/are defined in InputStream class of Bytes Stream?
  • Which of the following methods is/are defined in InputStream class of Bytes Stream?
  • Which of the following methods in OutputStream class finalizes the output state so that the buffers are cle...
  • Which of the following stream classes is an implementation of the output stream that uses a byte array as i...
  • Which of the following stream classes is an implementation of the output stream that uses a byte array as i...
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