Java Data Type Tutorial - Java System.inheritedChannel()








Syntax

System.inheritedChannel() has the following syntax.

public static Channel inheritedChannel()    throws IOException

Example

In the following code shows how to use System.inheritedChannel() method.

import java.nio.channels.Channel;
/*from ww w .  ja va  2 s .  com*/

public class Main {

  public static void main(String[] args) throws Exception {

    Channel ch = System.inheritedChannel();
  }
}