Spring/JAVA

Hello World & Java ๋™์ž‘ ์›๋ฆฌ

alsruds 2023. 9. 20. 17:15
๐Ÿฃ์ƒํ™œ์ฝ”๋”ฉ ๊ฐ•์˜๐Ÿฃ

4.1. ์‹คํ–‰ - HelloWorld
https://www.youtube.com/watch?v=pUqRAHxpxjM&list=PLuHgQVnccGMAIluRRVsC1e79ri-dwnBmR&index=7
JAVA1 - 4.2. ์‹คํ–‰ - Java์˜ ๋™์ž‘์›๋ฆฌ
https://www.youtube.com/watch?v=9V0rdrm59X4&list=PLuHgQVnccGMAIluRRVsC1e79ri-dwnBmR&index=9

 

Hello World ์ถœ๋ ฅํ•˜๊ธฐ

โœจ Main ํ•จ์ˆ˜ ์ž‘์„ฑํ•˜๊ธฐ

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello World!!");
    }
}

 

โœจ ์ถœ๋ ฅ ๊ฒฐ๊ณผ

๐Ÿ–ค

 

Java ์˜ ๋™์ž‘์›๋ฆฌ

  • ์›์ธ : source / code / language
  • ๊ฒฐ๊ณผ : application / program

 

1๏ธโƒฃ Java Source Code (.java) ์ž…๋ ฅ

2๏ธโƒฃ Java Application (.class) ๋กœ ์ปดํŒŒ์ผ

3๏ธโƒฃ Java Virtual Machine (JVM) ์ด ์‹คํ–‰

4๏ธโƒฃ Computer ์—์„œ ์‹คํ–‰

 

๐Ÿ’ก JVM ์ด๋ž€? ๐Ÿ’ก
์ž๋ฐ” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‹คํ–‰ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ๊ฐ€์ƒ ๋จธ์‹ 

โžก๏ธ OS ์— ์ข…์†๋ฐ›์ง€ ์•Š๊ณ  ์‹คํ–‰๋˜๊ธฐ ์œ„ํ•ด์„  OS ์œ„์—์„œ Java ๋ฅผ ์‹คํ–‰์‹œํ‚ฌ ๋ฌด์–ธ๊ฐ€๊ฐ€ ํ•„์š” === JVM

 

๊ฐ•์˜ ๋‚ด ์ด๋ฏธ์ง€

 

๐Ÿš‚์ž๋ฐ” ์—ด์ฐจ ์ถœ๋ฐœํ•ฉ๋‹ˆ๋‹ค~ ์น™์น™ํญํญ๐Ÿš‚