public class main { public static void main(String[] args) { int x = 30; System.out.println(35); System.out.println(35 +30); x= 40; final int y = 30; y = 20 } } 변수 = 30 값이 변할 수 있음 상수(final) 값이 변하지 않음 → 아래의 y는 에러를 일으킴 데이터 타입 int x = 30; long l = 30L; short s = 30; byte b = 30; 일반적으로 int와 Long을 씀 Long 뒤에는 L int : -2147483648 ~ 2147483647 long : -9223372036854775808 ~ 9223372036854775807 -> QA할때 써야..