Java.lang Package Classes

Java.lang.RuntimePermission Class

Java RuntimePermission Class

Java.lang package provides a RuntimePermission class which is for runtime permissions. A RuntimePermission contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.

Class declaration

The declaration of java.lang.RuntimePermission class is:

public final class RuntimePermission
  extends BasicPermission

Class Constructors

S.NConstructors & Description
1. RuntimePermission(String name)
Creates a new RuntimePermission with the specified name.
2. RuntimePermission(String name, String actions)
Creates a new RuntimePermission object with the specified name.

Methods inherited

This class inherits the methods of following class:

  • java.lang.Object