πŸ“Š JAVA
Q. What will be the output of the following Java code?
class A
{
A()throws IOException
{

}

}
class B extends A
{
B()
{

}
public static void main(String[]args)
{

}
}
  • (A) compile time error
  • (B) run time error
  • (C) compile and runs fine
  • (D) unreported exception java.io.IOException in default constructor
πŸ’¬ Discuss
βœ… Correct Answer: (A) compile time error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
93
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
95%
Success Rate