DEn*_*nis 7 java string overriding object hashcode
public class Test {
public static void main(String args[]) {
String s1 = "abc";
//Here is invoking of overriding String hashCode method.
System.out.println("hashCode value "+s1.hashCode()); }
}
Run Code Online (Sandbox Code Playgroud)
而不是它,我想得到非重写的Object hashCode方法.我怎么得到它?
| 归档时间: |
|
| 查看次数: |
1398 次 |
| 最近记录: |