Your second line is not permissible in
Java, since you have already declared b to be a byte[]; it cannot be a string.
Have you compiled this?
In order to answer your question, try this:
As far as why your String contains 'A', 'b', and 0, remember:
1). Strings are
not null-terminated arrays in Java
2). Arrays are initialized to zeros (this mening changes depending on data type; object arrays are, of course, initialized to null (not necessarily zero, but the logical equivilent) and boolean arrays to false (again, not necessarily zero, but the logical equivilent)
Thus, if you had:
This will produce:
Ab:length:3
65
98
0
(The 0 does not print when the string prints because, as a char, it still is a NPC; however, as evidenced by the length of the string, it still takes up a position in the string because Java does not recognize it as a terminating character)
Gee, this is turning into a dissertation
Final thought for you: what does this do?