Hmmm yes,
Well, it shows me the exception if the
String object is declared as a class member, but if I have both these statements inside a method, then it shows "variable may not have been initialized"
at compile time.
Therefore, I would call it an ambiguous question.
Thanks.