Which are the valid ways to create DataInputStream streams? (a) New DataInputStream(new FileInputStream(in.dat); (b) New DataInputStream(in.dat, r);

Question:

Which are the valid ways to create DataInputStream streams?

(a) New DataInputStream(new FileInputStream(“in.dat”);

(b) New DataInputStream(“in.dat”, “r”);

(c) New DataInputStream(“in.dat”)

(d) New DataInputStream(new File(“in.dat”))

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: