面向對象(異常處理)

啥也不多說,直接上代碼 public class ExceptionTest01 { public void runtimeExceptionNotUseTryCatch(){ String str = null; m1(str); System.out.println(「over」); } private void m1(String str) { if(str==null){ System.o
相關文章
相關標籤/搜索