class Help {
public static void main(String[] args) {
String s1 = "hello";
String s2 = "hello" + "world";
}
}
- Is
s1
here an object reference variable, or did we create an object in the first statement?- If answer is yes, then in the second statement how many objects will be created ?