Java - Memory Management Basics
Identify the error in the following Java code snippet:
public class Test {
public static void main(String[] args) {
String s;
System.out.println(s.length());
}
}