Java IO Tutorial - Java FileDescriptor() Constructor








Syntax

FileDescriptor() constructor from FileDescriptor has the following syntax.

public FileDescriptor()

Example

In the following code shows how to use FileDescriptor.FileDescriptor() constructor.

import java.io.FileDescriptor;

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

The code above generates the following result.