hashCode(): This method is available in java.util.PropertyPermission class of Java.
Syntax:
int java.util.PropertyPermission.hashCode()
This method returns the hash code value for this object.
Parameters: NA
Returns: a hash code value for this object.
Exceptions: NA
Approach
Java
import java.util.PropertyPermission;public class PropertyPermissionhashCode {public static void main(String[] args) {PropertyPermission propertyPermission =new PropertyPermission("Hello", "read");System.out.println(propertyPermission.hashCode());}}
Output:
69609650
No comments:
Post a Comment