The document notes that in Java, if a constructor is declared for a class, there will be no default constructor provided, creating an object of that class without calling a constructor will result in a null pointer exception at runtime, and importing the java.lang package can cause runtime errors.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
28 views1 page
Java Constructor and Error Notes
The document notes that in Java, if a constructor is declared for a class, there will be no default constructor provided, creating an object of that class without calling a constructor will result in a null pointer exception at runtime, and importing the java.lang package can cause runtime errors.