getActions(): This method is available in java.util.PropertyPermission class of Java.
Syntax:
String java.util.PropertyPermission.getActions()
This method returns the "canonical string representation" of the actions. That is, this method always returns present actions in the following order:read, write.
Parameters: NA
Returns: the canonical string representation of the actions.
Exceptions: NA
Approach
Java
import java.util.PropertyPermission;public class PropertyPermissiongetActions {public static void main(String[] args) {PropertyPermission propertyPermission =new PropertyPermission("Hello", "read");System.out.println(propertyPermission.getActions());}}
Output:
read
No comments:
Post a Comment