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 |
- Best exam simulation CIW master-ciw-enterprise-developer download free trial.
- Download practice question and study guide for scbcd for exam.
- Click here to get free scdjws SCDJWS exam practice questions.
- Pass SUN scja - SCJA
- Download free practice test for scjp SCJP exam.
- Best exam simulation SUN scjp-5-0 download free trial.
- Best exam simulation SUN scmad download free trial.
- Download free practice test for SUN SCWCD exam.
- Download free practice test for SUN SCJP 2 exam.
- Click here to download CX310-019 test study guide and practice question.
- Pass SCJP 1.4 Upgrade in first attampt.
- Click here to get free CX310-055 Java 5.0 exam practice questions.