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 |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India