FileDescriptor.err has the following syntax.
public static final FileDescriptor err
In the following code shows how to use FileDescriptor.err field.
import java.io.FileDescriptor; public class Main { public static void main(String args[]) { FileDescriptor fd = FileDescriptor.err; System.out.println(fd.hashCode()); } }
The code above generates the following result.