Leave a Reply 9

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


duff

duff

E.
Checked with NetBeans

Vasily

Vasily

B is correct.

Bruno

Bruno

Answer is E. Checked with NetBeans.

Lulu87

Lulu87

I checked it with Eclipse and is E

Tomas

Tomas

Answer: E
DerivedB DerivedB
Tested

Oleg

Oleg

People, better if you write explanation WHY it is E instead of giving the same answer multiple times.

Jadson

Jadson

E is correct

if a non-static method is overrided by a subclass
then JAVA will use this overrided method , no mmater what Type this object is declared

but for the variable and static method , which target should be used depend on the Type