Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. What is the output of...
What is the output of this program?

class Compsci
{
     Compsci()throws IOException
     {
 
     } 
 
}
class Bits extends Compsci
{
     Bits()
     {
 
     }
     public static void main(String[]args)
     {
 
     }
}

Compile time error

Run time error

Compile and runs fine

Unreported exception java.io.IOException in default constructor

Answer: A . Compile time error
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

0Shares
0
Scroll to Top