Object類spa
經常使用方法:clone(),equals(),hashCode()blog
clone():繼承
報錯緣由:clone()方法的返回值是Object型,然而TestClone繼承Object類,因此是大類型轉小類型須要強轉 hash
報錯緣由:undandled exception type CloneNotSupportedException(未處理的異常類型CloneNotSupportedException)io
運行時報錯緣由:exception