강의

멘토링

커뮤니티

Inflearn Community Q&A

entlr15984756's profile image
entlr15984756

asked

Learning Java through Pictures, Part 2: Object Orientation!

Object combinations and class variables

객체 생성할 때 매개변수에 new연산자는 왜 붙인건가요?

Written on

·

300

0

매개변수에 new 없이 int[]{9, 8, 10}하면 안되나요?

new를 붙이신 이유가 뭔가요??

oopjava

Answer 1

1

hongpark님의 프로필 이미지
hongpark
Instructor

입력값으로 전달할 배열을
소괄호 안에서
직접 만든 것입니다.

"자바 배열 생성 new"
정도로 구글링해보세요

entlr15984756's profile image
entlr15984756

asked

Ask a question