●Java

 ▷썬 마이크로시스템즈에서 개발한 객체 지향 프로그래밍 언어

 ▷C#과 문법이 매우 비슷함.

 

 ▶Class

  ▷모든 Class들은 main 함수를 가질 수 있음

  ▷프로그램이 실행되면, main함수가 실행됨.

 

 ▶Type

  ▷int, long...

  ▷float, double...

  ▷array...

 

 ▶Control Structure

  ▷if, switch-case

  ▷for, while, do-while

  ▷return, break, continue

 

○Java Virtual Machine

 ▷*.java파일을 컴파일 하면, *.class의 Byte Code의 형태로 나오게 됨.

 ▷Byte Code를 실행하려면 Java Virtual Machine(Java Runtime Environment)이 필요

 ▶장점

  ▷다른 시스템(OS)에 동일한 class 코드를 적용할 수 있음. (portable)

  ▷Write Once, Run Anywhere

 

 ▶단점

  ▷Byte Code에서 Machine Code까지 추가적인 변환이 필요함.

  ▷성능이 저하됨.

 

※JDK, JRE, JVM

'컴퓨터 언어 > java' 카테고리의 다른 글

String  (0) 2020.11.10
Date  (0) 2020.11.10
Formatting print  (0) 2020.11.10
Scanner  (0) 2020.11.10
Primitive Types, Wrapper  (0) 2020.11.03

+ Recent posts