File class Retrieve Metadata of File
Almost all the java.io package classes are streams. A stream is a carrier of data. To carry data, even sockets, use I/O streams. Infact, the methods getInputStream() and getOutputStream() of java.net.Socket returns an object of InputStream class and OutputStream class. InputStreamReader and OutputStreamWriter are non-stream classes. They are not streams; they are converters or wrappers …