What’s the use of the FileDescriptor class in Java ? We can only obtain it with the getFD() methods on streams and then we can use the obtained FD to create another instance of, say, FileInputStream which we can also do by creating a FileInputStream object with the same file name (instead of using its FD).
Also, the methods in, out and err. what use can they be put to ?
As the JavaDoc says:
They are therefore a behind-the-scenes implementation detail for the JDK to plug in to the underlying OS