hashCode(): This method is available in java.util.ResourceBundle class of Java.
Syntax:
int java.lang.Object.hashCode()
This method returns a hash code value for the object.
Parameters: NA
Returns: a hash code value for this object.
Exceptions: NA
Approach
Java
import java.util.Locale;import java.util.ResourceBundle;public class ResourceBundlehashCode {public static void main(String[] args) {ResourceBundle bundle =ResourceBundle.getBundle("Hello", Locale.US);System.out.println(bundle.hashCode());}}
Output:
895947612
No comments:
Post a Comment