Question: The following code cannot be compiled because of what reason? class A { int i; public A ( int i ) { this.i = i;

The following code cannot be compiled because of what reason?
class A {
int i;
public A(int i)
{
this.i=i;
}
}
class B extends A{
int j;
public B(int j)
{
this.j=j;
}
}
Group of answer choices
None of the choices.
The fields are not private.
The fields are not initialized.
Superclass is not calling the subclass constructor.
Subclass is not calling the parent class constructor.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!