Java System inheritedChannel() Method

The inheritedChannel() method of Java System class returns channel inherited from entity that created this java virtual machine.

Syntax

Returns

  1. Returns the inherited channel.
  2. Returns null if channel is not there.
  3. If an I/O error occurs then IOException is thrown.
  4. If Security manager exist and doesn?t allow to access channel then a SecurityException is thrown.

Example

Output:

Inherited Channel = null