From the JLS 15.13 - Array Access Expressions:
The index expression undergoes unary numeric promotion (�5.6.1); the promoted type must be int.
�5.6.1:
If the operand is of compile-time type byte, short, or char, unary numeric promotion promotes it to a value of type int by a widening conversion
so, since the index is a
char, it is promoted to an int and '\u0000' becomes 0.
Francisco
[ June 14, 2002: Message edited by: Francisco A Guimaraes ]