Java.lang.RuntimePermission Class


The java.lang.RuntimePermission class 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

Following is the declaration for java.lang.RuntimePermission class −

public final class RuntimePermission
   extends BasicPermission

Class constructors

Sr.No. Constructor & Description

RuntimePermission(String name)

This constructs a new RuntimePermission with the specified name.


RuntimePermission(String name, String actions)

This constructs a new RuntimePermission object with the specified name..

Class Methods

This class inherits methods from the following class −

  • java.lang.BasicPermission

  • java.lang.Permission

  • java.lang.Object
Kickstart Your Career

Get certified by completing the course

Get Started