Home
Subscribe TechModgy to learn about new technologies!

Which are the valid ways to create DataInputStream streams?

A. new DataInputStream(new File("in.dat"));

B. new DataInputStream(new FileInputStream("in.dat"));

C. new DataInputStream("in.dat");

D. new DataInputStream("in.data","r");

Please do not use chat terms. Example: avoid using "grt" instead of "great".