What does the following code print?
System.out.print("1");
System.out.print("2");
System.out.println("3");
System.out.println();
System.out.println("4");
There are four options:
a)
1234
b)
123
4
c)
12
3
4
d)
123
4What does the following code print?
System.out.print("1");
System.out.print("2");
System.out.println("3");
System.out.println();
System.out.println("4");
There are four options:
a)
1234
b)
123
4
c)
12
3
4
d)
123
4Create a free account to access the full topic