-
자료형Back end/Java 기본 2023. 11. 14. 12:24
자바(Java)는 정적 타입 언어로서, 변수를 선언할 때 해당 변수의 데이터 타입을 명시적으로 지정해야 합니다. 이것이 자바에서의 "자료형" 개념입니다. 자바의 자료형은 크게 기본 자료형(Primitive Data Types)과 참조 자료형(Reference Data Types)으로 나뉩니다. package chap_01; public class _02_DataTypes { public static void main(String[] args) { System.out.println("Hello World"); System.out.println("안녕하세요?"); System.out.println(12); System.out.println(-34); System.out.println(3.14); System.out.println(true); System.out.println(false); System.out.println(123 + 345); } }
'Back end > Java 기본' 카테고리의 다른 글
상수 (0) 2023.11.14 변수 이름 짓는 법 (0) 2023.11.14 주석 (0) 2023.11.14 변수? (0) 2023.11.14 객체 지향 프로그래밍 언어의 특징 (0) 2023.11.06