Does the following code compile successfully? Justifyyour answer. [0.25]
interface A
{
int i =111;
}
class B implements A
{
voidmethodB()
{
i = 222;
}
}
Expert Answer
An answer will be send to you shortly. . . . .
Does the following code compile successfully? Justifyyour answer. [0.25]
interface A
{
int i =111;
}
class B implements A
{
voidmethodB()
{
i = 222;
}
}
An answer will be send to you shortly. . . . .