Duplicate local variable age
로컬(지역)변수 중복 선언 (이미 age라는 변수명이 존재함)
이지현 cannot be resolved to a variable
문자열을 "" 안에 안 넣었다.
The local variable name may not have been initialized
지역변수가 제대로 초기화되지 않았다.
grade cannot be resolved to a variable
grade가 변수로 선언되지 않았다.
Type mismatch: cannot convert from int to String
잘못된 자료형을 사용했다.
The left-hand side of an assignment must be a variable
\(escape) 문자를 사용하지 않았다.
The final local variable --- cannot be assigned
한 번 초기화 된 상수에 다른 값 할당하려고 했을 때
The left-hand side of an assignment must be a variable
리터럴에 할당하려 할 때, 상수를 재할당 하려고 할 때
Unhandled exception type IOException
readLine(); -> 빨간줄 -> 클릭(IOException 예외처리가 필요하다.)
java.lang.ArithmeticException: / by zero
/나 %을 0으로 나눌 때 산술적 예외(오류) 발생
The operator ! is undefined for the argument type(s) int
부정연산자는 int 피연산자에 사용할 수 없다.
java.lang.NumberFormatException: For input string: " 90 "
" 90 " => 앞뒤 공백 제거
The operator <= is undefined for the argument type(s) boolen, int
0 <= kor <= 100 으로 오류문 쓰면 에러남
Unreachable code
이 코딩은 할 일이 없다. for문이 무한루프 도는 중
java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
배열에 자리가 없음
java.util.IllegalFormatConversionException: d != java.lang.String
printf에서 자료형이 틀림
Duplicate method drawLine() in type Ex08_02
함수명이 겹침(시그노처(매개변수의 갯수타입)가 다르면 같은 이름이지만 다른 함수를 만들 수 있음)
함수가 같은 이름으로 여러개 선언되어 있으면 중복함수(over roading)이라고 함
java.util.NoSuchElementException
Scanner에서 더 입력받을 값이 없음
java.lang.NullPointerException
null만 있다(참조하는 곳이 없다.)(배열 참조가 끊어짐)