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)
{
}
}
class A
{
A()throws IOException
{
}
}
class B extends A
{
B()
{
}
public static void main(String[]args)
{
}
}
β
Correct Answer: (A)
compile time error