asked
Yoon Jae-seong's introductory course through hands-on experience for Spring Framework developers
Lesson 12: Injection through Setter Methods
Written on
·
240
0
자바에서 문자열은 String클래스타입의 객체이지만 자르형처럼 지원한다?는 설명이 있었는데 그부분이 먼뜻일까요..ㅜ
Answer 1
원래 객체를 생성할 때는 new 클래스명() 이렇게 해야 하는데 문자열의 경우 "문자열" 이렇게 값처럼 작성해도 객체로 생성되는 의미입니다.