Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0(zero), a boolean will be initialized to false.
Subscribe to:
Post Comments (Atom)
Welcome to techInterview, a site for technical interview questions, and other things that make you think!
0 comments:
Post a Comment