📄 hashtest.java
字号:
public class HashTest
{
private int a = 777;
public void printh()
{
System.out.println(this.hashCode());
}
public static void main(String[] args)
{
HashTest A = new HashTest();
HashTest B;
try{
A.clone();
}catch(CloneNotSupportedException e){
System.out.println(e);
}finally{
B = A;
}
A.printh();
B.printh();
System.out.println(A.equals(B));
System.out.println((char)A.a + (char)B.a);
System.out.println(A.toString());
System.out.println(A.getClass());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -