In Java Suppose We Declare Any Constructor There Will Not Be Any Default Const. For That Class
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)
11 views
In Java Suppose We Declare Any Constructor There Will Not Be Any Default Const. For That Class
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.