InterviewSolution
| 1. |
What Are Fileinputstream And Fileoutputstream? |
|
Answer» These two are general PURPOSE classes used by the programmer very often to copy FILE to file. These classes WORK well with files CONTAINING less data of a few thousand bytes as by performance these are very poor. For larger data, it is preferred to USE BufferedInputStream (or Buffered Reader) and BufferedOutputStream (or BufferedWriter). These two are general purpose classes used by the programmer very often to copy file to file. These classes work well with files containing less data of a few thousand bytes as by performance these are very poor. For larger data, it is preferred to use BufferedInputStream (or Buffered Reader) and BufferedOutputStream (or BufferedWriter). |
|