본문 바로가기

JAVA/JAVA_Lecture

Lecture 01: Course Intro / Introduction to Java

- It will cover basic grammer of Java, but will quickly move on to spend more time on object oriented programming concepts and other features of Java.

 

- Recommend writing at least 5-10 short programs in a weak, related to the concepts learned in the class.

 

- Java is a General-purpose programming language (컴퓨터 소프트웨어 분야에서 범용 프로그래밍 언어는 다양한 도메인의 소프트웨어를 개발하기 위해 설계된 프로그래밍 언어이다. 특정 도메인에서만 사용되는 프로그래밍 언어와 대비된다.)

 

- As of 2019, Java is the most popular programming language (2nd C, 3rd Python, 4th C++)

 

- Compiled language (C, C++) vs Interpreted language (Python)

  • A compiler reads the entire program and converts it into an object code. (fast)
  • An interpreter reads the source code of your program one line at time. (slow)
  • Java는 compile을 통해 byte code로 바꾸고, Java virtual machine(JVM)을 통해 interpreted된다. (byte code는 platform independent해서 개발환경, 실행환경 달라도 OK)

 

- Characteristics of Java

  • Platform-Independent
  • Object-Oriented Language : C++과 다르게 원래부터 OOP지향으로 만들어졌다.
  • Garbage Collection : 메모리 따로 신경 안써도 된다.
  • Good support of networking and multi-threading(프로그램을 하나 돌렸을 때 CPU 안에서 일을 분산하여 돌리는 작업)