# Java 21의 새로운 기능들

> Clean Markdown view of GeekNews topic #10293. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=10293](https://news.hada.io/topic?id=10293)
- GeekNews Markdown: [https://news.hada.io/topic/10293.md](https://news.hada.io/topic/10293.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-08-11T10:31:01+09:00
- Updated: 2023-08-11T10:31:01+09:00
- Original source: [loicmathieu.fr](https://www.loicmathieu.fr/wordpress/en/informatique/java-21-quoi-de-neuf/)
- Points: 8
- Comments: 6

## Topic Body

- Java 21 은 새로운 LTS 버전으로 2년간 지원될 예정   
- 가장 중요한 것은 Virtual Threads의 완성   
- JEP 430: String Templates (Preview) - String Interpolation 지원   
- JEP 431: Sequenced Collections - 컬렉션 API에 많은 기능들 추가   
- JEP 443: Unnamed Patterns and Variables (Preview) - "_" 를 익명의 패턴/변수로 활용   
- JEP 445: Unnamed Classes and Instance Main Methods (Preview) - Main 메소드를 간략화해서 간단한 자바코드는 더 쉽게 작성 가능  
- Preview 종료하는 피쳐들:  
  - JEP 440 – Record Patterns  
  - JEP 441 – Pattern Matching for switch  
  - JEP 444 – Virtual Threads  
- Preview 로 남는 피쳐들  
  - JEP 442 – Foreign Function & Memory API (Third Preview)  
  - JEP 448 – Vector API  
  - JEP 446 – Scoped Values (Preview)  
  - JEP 453 – Structured Concurrency (Preview)

## Comments



### Comment 18139

- Author: [hidden]
- Created: 2023-08-11T13:07:44+09:00
- Points: 3

[숨김 처리된 댓글입니다]

### Comment 18325

- Author: cosine20
- Created: 2023-08-17T10:12:42+09:00
- Points: 1
- Parent comment: 18139
- Depth: 1

아저씨...

### Comment 18129

- Author: xguru
- Created: 2023-08-11T10:32:02+09:00
- Points: 4

아 JEP 445는 정말.. Java로 짠 Hello World는 너무 지저분했어요 ㅎㅎ  
```Java  
public class HelloWorld {   
    public static void main(String[] args) {   
        System.out.println("Hello, World!");  
    }  
}  
```  
  
이 복잡하던 걸 아래처럼 쓸 수 있게 해줍니다.  
  
```Java  
void main() {  
    System.out.println("Hello, World!");  
}  
```

### Comment 18138

- Author: joyfui
- Created: 2023-08-11T12:21:58+09:00
- Points: 2
- Parent comment: 18129
- Depth: 1

'와 대학교 손코딩의 악몽이 해결!'  
은 교재가 JDK8이라 fail

### Comment 18134

- Author: click
- Created: 2023-08-11T11:06:10+09:00
- Points: 1
- Parent comment: 18129
- Depth: 1

Java가 kotlin의 기능을 역으로 흡수한다는 느낌이 드네요

### Comment 18132

- Author: tmvkrpxl0
- Created: 2023-08-11T10:52:04+09:00
- Points: 1
- Parent comment: 18129
- Depth: 1

기능은 완전 환영하지만 점점 문법이 C++처럼 바뀌네요
