Java Collection hashCode() MethodThe hashCode() method of Java Collection Interface returns the hash code value for this collection. SyntaxParametersNA OverridesThis method overrides hashCode in class Object ReturnThe hashCode() method returns the hash code value for this collection. Example 1Test it NowOutput: Hash Code : 8 Example 2Test it NowOutput: Hash Code : 157560278
Next TopicJava Collection
|