What Will Be The Output Of The Following Java Codep Pre #187
What will be the output of the following Java code?</p> <pre><code class="language-java" line="1"> class San { San()throws IOException { } } class Foundry extends San { Foundry() { } public static void main(String[]args) { } }</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs128 Java.
It can also be found in
gs gs128 Java Classes Methods - Constructor & Garbage Collection in Java - Quiz No.1.
What will be the output of the following Java code?
class San { San()throws IOException { } } class Foundry extends San { Foundry() { } public static void main(String[]args) { } }
compile time error
run time error
compile and runs fine
unreported exception java.io.IOException in default constructor