As soon as an array is created using a new operator, its elements are automatically initialized to their default values. This automatic initialization of the elements depends on the data type of the array. The following table shows the initial value of the elements of an array:
| boolean | false |
| byte | 0 |
| short | 0 |
| int | 0 |
| long | 0L |
| char | ‘u0000′ |
| float | null |
| double | 0.0D |
| Object reference | null |
- Pass Master CIW Enterprise Developer in first attampt.
- Pass SUN scbcd - SCBCD
- Download practice question and study guide for scdjws for exam.
- Click here to download scja test study guide and practice question.
- Download practice question and study guide for scjp for exam.
- Become SUN SCJP 5/6 certified.
- Click here to download scmad test study guide and practice question.
- Download free practice test for SUN SCWCD exam.
- Download practice question and study guide for 310-035 for exam.
- Get certified in first attempt download CX310-019 - SCJA simulation.
- Pass SUN CX310-036 - SCJP 1.4 Upgrade
- Pass SUN CX310-055 - Java 5.0
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.