Learn more in the app.
View in app
Method overriding and TypeCasting - Java Quiz Question
What will be the output of the following program?
A
-1
122
B
127
Can't type cast
-1
C
127
122
D
-1
Can't type cast
-1
E
Some other output
F
Compilation Error or Runtime Error