Java IO Tutorial - Java FileDescriptor out








Syntax

FileDescriptor.out has the following syntax.

public static final FileDescriptor out

Example

In the following code shows how to use FileDescriptor.out field.


import java.io.FileDescriptor;

public class Main {
  public static void main(String args[])  {
    FileDescriptor fd = FileDescriptor.out;
    System.out.println(fd.hashCode());
  }
}

The code above generates the following result.