Java - Classes and Objects
Identify the error in the following Java code related to object lifecycle:
class Example {
Example() {
System.out.println("Example created");
}
public static void main(String[] args) {
Example e = new Example();
e = null;
System.out.println(e.hashCode());
}
}