Given the code fragment:
Which two code fragments are valid at line 2?
for (int count = 0; count < 5; count++) {
System.out.print(count);
}
package p1;
import java.util.*;
public void display() {
List nums = new ArrayList<> ();
{
private int num;
private String name = “Johnâ€;
System.out.print(name);
What is the result?
false
true
456789
4567889
45678
3456789