-
오류 컴파일 오류, 런타임 오류에러모음집 2023. 11. 5. 16:30
package chap_11; public class _01_TryCatch { public static void main(String[] args) { //예외 처림 //오류 컴파일 오류, 런타임 오류 // int i="문자열"; int [] arr=new int[3]; arr[5] =100; S s=new S(); s.methodA(); } } class S { public void methodA(){ this.methodA(); ///무한 반복호출 -> stack overflow error } }
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at chap_11._01_TryCatch.main(_01_TryCatch.java:11)
Process finished with exit code 1'에러모음집' 카테고리의 다른 글
Exception in thread "main" java.util.InputMismatchException (0) 2023.11.18 앞에 에러가 나서 quiz3가 나오지 않는 이유 (0) 2023.10.25 JS코드 오타 오류 Quiz parse() (0) 2023.10.25 자바스크립트 에러 Date.parse() (0) 2023.10.25 form post null 스프링 부트 에러 (0) 2023.01.12