SerializablePermission 

Introduction

The Java.io.SerializablePermission class is for Serializable permissions. A SerializablePermission contains a name (also referred to as a “target name”) but no actions list; you either have the named permission or you don’t.The target name is the name of the Serializable permission.

Class declaration

Following is the declaration for Java.io.SerializablePermission class −

public final class SerializablePermission
   extends BasicPermission

Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career.

Class constructors

Sr.No.Constructor & Description
1SerializablePermission(String name)This creates a new SerializablePermission with the specified name.
2SerializablePermission(String name, String actions)This creates a new SerializablePermission object with the specified name.

Methods inherited

This class inherits methods from the following classes −

  • Java.io.BasicPermission
  • Java.io.Permission
  • Java.io.Object

Comments

Leave a Reply

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