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;
/* w w  w  .j  av  a  2s.  c o m*/
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.