• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A few Questions on IO

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic