기본형 변환 실습
문제 1 int형으로 선언한 intValue의 값을 long형 변수에 넣어보겠습니다. 빈칸에 long형 변수 longValue를 선언하고 intValue에 들어있는 값을 담아보세요.
public class TypeCastingExam {
public static void main(String[] args) {
int intValue = 200;
_____________________________
System.out.println(longValue);
}
}
실행결과
200