By: Ash Viewed: 639 times Printer Friendly Format
Question: Consider the following line of code:
int x = new int;
After execution, which statement or statements are true?
A. x is 0.
B. x is undefined.
C. x is 0.
D. x is null.
E. x.length is 25.
Answer:A and E are true. The array has 25 elements, indexed from 0 through 24. All elements are initialized to zero.
Most Viewed Articles (in Certification )
Latest Articles (in Certification)
Comment on this tutorial
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews