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 |
- Become CIW Master CIW Enterprise Developer certified.
- Become SUN SCBCD certified.
- Pass SCDJWS in first attampt.
- Download free practice test for scja SCJA exam.
- Get certified in first attempt download scjp - SCJP simulation.
- Pass SCJP 5/6 in first attampt.
- Pass SCMAD in first attampt.
- Pass SUN scwcd - SCWCD
- Pass SCJP 2 in first attampt.
- Click here to get free CX310-019 SCJA exam practice questions.
- Download free practice test for CX310-036 SCJP 1.4 Upgrade exam.
- Best exam simulation SUN CX310-055 download free trial.
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.
