Hi everybody,
Q1) Explain the following constructors of File class :
(i) File(File parent,
String child)
(ii) File(String parent, String child)
Q2) What are the uses of the following classes :
(i) RandomAccessFile
(ii) ByteArrayInputStream and ByteArrayOutputStream
(iii) PipedInputStream and PipedOutputStream
(iv) FilterInputStream and OutputStream
Q3) What is the difference between getDocumentBase() and getCodeBase() methods ?
Q4) Explain the functions of InputStreamReader and OutputStreamReader?
Q5) Which is the best class for reading and writing bytes and character data respectively?
Q6) Is it that FileOutputStream and FileInputStream are used for writing and reading bytes to/from the file whereas FileInputStream and FileOutputStream are used for reading and writing character data from/to the file ?
Q7) Is it always necessary to combine Readers/Writers with InputStreams/OutputStreams ?