Java基础
程序员文章站
2022-05-24 16:18:08
...
Java 基础
1. equals() and hasCode()
(1). If two objects are equal, then they must have the same hash code.
(2). If two objects have the same hashcode, they may or may not be equal.
2.Exception Hierarchy in Java - Diagram
Red colored are checked exceptions. Any checked exceptions that may be thrown in a method must either be caught or declared in the method’s throws clause. Checked exceptions must be caught at compile time.Checked exceptions are so called because both the Java compiler and the Java virtual machine check to make sure this rule is obeyed.
上一篇: 简单实现python数独游戏
下一篇: 墨盒、硒鼓可以打印的张数如何计算