강의

멘토링

커뮤니티

Inflearn Community Q&A

gnohnoey's profile image
gnohnoey

asked

Kim Younghan's Practical Java - Basics

Problem and Solution

멤버 변수 관련 질문

Written on

·

79

0

image.png

int width;로 선언하는 거랑 int width = 0;으로 선언하는 것에 무슨 차이가 있나요?

java객체지향

Answer 1

0

안녕하세요. mm4884님, 공식 서포터즈 David입니다.

차이는 없습니다. 명시적으로 초기값 할당을 드러내느냐 아니냐 차이입니다:)

감사합니다.

gnohnoey's profile image
gnohnoey

asked

Ask a question