Course Solutions Uncategorized (Solved) : Following Code Compile Successfully Justify Answer 025 Interface Int 111 Class B Implement Q31607253 . . . .

(Solved) : Following Code Compile Successfully Justify Answer 025 Interface Int 111 Class B Implement Q31607253 . . . .

 

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. . . . .

Leave a Reply

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

Related Post