Analyze the following code:
public class Test {
public static void main(String[] args) {
String s = "123";
System.out.println("s is " + s);
}
}
The program has a runtime error because s is null in the println statement.
The program has a runtime error because s is not initialized, but it is referenced in the println statement.
The program compiles and runs fine.
The program has a compilation error because s is not initialized, but it is referenced in the println statement.