欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Java基础

程序员文章站 2022-05-24 15:25:31
...

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.


Java基础
            
    
    博客分类: Java java 
 

  • Java基础
            
    
    博客分类: Java java 
  • 大小: 126.3 KB
相关标签: java