J
John Goche
Hello,
I would like to point our that the following code
produces a NullPointerException at runtime:
byte[] ba = null;
String s = new String(ba);
This is somewhat odd. I thought the constructor
would simply produce an empty string. This is not
so important but I find it rather curious.
Feedback appreciated.
Regards,
JG
I would like to point our that the following code
produces a NullPointerException at runtime:
byte[] ba = null;
String s = new String(ba);
This is somewhat odd. I thought the constructor
would simply produce an empty string. This is not
so important but I find it rather curious.
Feedback appreciated.
Regards,
JG