[HD Pg 0, Sec. 3.3.2 - uninitialized-variables-and-default-values]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
flex567
Posts: 202
Joined: Mon Apr 02, 2018 8:40 am
Contact:

[HD Pg 0, Sec. 3.3.2 - uninitialized-variables-and-default-values]

Post by flex567 »

There are 3 points about initilization.
But I think the point 4 is missing about values for array elements.?
It could be included what are deafult values for elements of the array of static/instance/local vars.

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 0, Sec. 3.3.2 - uninitialized-variables-and-default-values]

Post by admin »

Taking about arrays at this point would be like forward referencing a topic :) (arrays are introduced and discussed in the next chapter). Even so, the three points about default values of variables are complete and applicable to array variables as well. You will learn later that arrays are objects so, what goes for any reference variable goes for an array variable.

Array initialization, on the other hand, is an entirely different topic from variable initialization. Initializing the arrays elements are discussed in chapter 4.

We will add more information to improve this section nonetheless.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests