hashCode(): This method is available in java.util.ResourceBundle.Control 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.ResourceBundle;import java.util.ResourceBundle.Control;public class ResourceBundleControlhashCode {public static void main(String[] args) {ResourceBundle.Control reControl =ResourceBundle.Control.getControl(Control.FORMAT_DEFAULT);System.out.println(reControl.hashCode());}}
Output:
1130478920
No comments:
Post a Comment