본문 바로가기

IT뉴스

GeekNews] Public static void main(String[] args) is dead

728x90
  • 이제 Java의 첫 번째 프로그램은 더 이상 public static void main(String[] args) 로 시작하지 않고, 단순화된 void main() 문법으로 작성 가능해짐
  • 새로운 문법에서는 IO.readln IO.println 같은 간단한 호출만으로 입출력을 처리할 수 있어 코드가 훨씬 직관적으로 바뀜

 


개인적인 의견 : 자바도 파이썬화되어가는.. 더 단순하고 진입장벽낮은 언어로 변하는 중..

 

https://mccue.dev/pages/9-16-25-psvm

 

public static void main(String[] args) is dead

by: Ethan McCue As of September 16th, year of our lord 2025, this is no longer the first Java program you need to write. public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("What is your n

mccue.dev

 

 

728x90