Java.lang.RuntimePermission Class

Java RuntimePermission Class

The RuntimePermission class in the Java.lang.RuntimePermission package is used to manage runtime permissions. A RuntimePermission has a name (sometimes known as a “target name”) but no actions list; you either have or don’t have the named permission.

Class declaration

The declaration of java.lang.RuntimePermission class is:


public final class RuntimePermission 
 extends BasicPermission

Class Constructors

S.N Constructors & 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 the following class:

  • java.lang.Object


To open the online compiler click here.


Also Read: Java – Label Statement

Leave a Reply

Your email address will not be published. Required fields are marked *