Consider the following variable declarations.
The following options make statements about the results of various operations executed before any change has affected these variables. Which of these statements is true?
A The logical
test x == null will return true.
B The value retrieved by addressing y[ 0 ] is 0.
C Addressing the element s1[ 1 ] produces a null value.
D Addressing the element s2[ 1 ] produces an empty
String.
Your recorded answer B,C
Answer given:A,B
I felt B,C
All the arrays are intialized by default. So elements of object arrays will be assigned to null.
But here its given array object itself is assigned to null .Is it specific to static arrays or string arrays??
Please explain!!
Cheers
Smitha
[ August 24, 2005: Message edited by: Barry Gaunt ]