Javatpoint Logo
Javatpoint Logo

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

Test it Now

Output:

Inherited Channel = null

Next TopicJava System



Help Others, Please Share

facebook twitter pinterest