posted 22 years ago
hi guys I have doubt in this question
which I have seen in a mock exam
Which of the following will compile without error?
A) File f = new File("/","autoexec.bat");
B) DataInputStream d = new DataInputStream(System.in);
C) OutputStreamWriter o = new OutputStreamWriter(System.out);
D) RandomAccessFile r = new RandomAccessFile("OutFile");
According to me right answers r : A,C,D
but the exam says rihgt answers r : A,B,C
how it is B and not D
please explain me
thanks
Bansal