What is output by the following code? (Choose all that apply)
1: public class Main { 2: public static void main(String[] args) { 3: int my = 4; 4: String v2 = "ABC"; 5: String v = my + 1; 6: System.out.println(v + " " + v2); 7: System.out.println(my + " " + 1); 8: } 9: }
G.
Line 5 does not compile.
We cannot assign int value to string value.