aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java I/O and Servlets
  • Which of the following is the valid way to create Data In...
Multiple choice

Which of the following is the valid way to create Data Input Stream streams?

  1. new DataInputStream();

  2. new DataInputStream(“in.dat”,”r”);

  3. new DataInputStream(“in.dat”);

  4. new DataInputStream(new FileInputStream(“in.dat”)

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • Which of the following stream classes in Java creates and maintains a buffer for an input stream?
  • Which of the following stream classes is an input stream that contains methods for reading the java standar...
  • Which of the following stream classes in Java is an output stream that contains methods for writing the Jav...
  • The ______________ stream class in Java is supposed to be used to write a byte array into the memory.
  • The LineNumberInputStream, DataInputStream, BufferedInputStream, and PushBackInputStream classes are derive...
  • Which of the following methods is/are defined in InputStream class of Bytes Stream?
  • There are three classes that implement the Data Input and Data Output interfaces. Two of them are: Data Inp...
  • Which of the following stream classes is/are available in Java?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy