Java IO Tutorial - Java FileDescriptor in








Syntax

FileDescriptor.in has the following syntax.

public static final FileDescriptor in

Example

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

import java.io.FileDescriptor;

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

The code above generates the following result.