Yes.
The B4A output Java code has:
at the top of the Sub, ie WhatString is declared and initialized first-up regardless of what happens below, which for Case 1 is:
Code:
//BA.debugLineNum = 72;BA.debugLine="Dim WhatString As String";
_whatstring = "";
//BA.debugLineNum = 73;BA.debugLine="WhatString = \"Hello\"";
_whatstring = "Hello";
and for Case 2 is:
Code:
//BA.debugLineNum = 75;BA.debugLine="WhatString = \"Hi\"";
_whatstring = "Hi";