Language:
English
English
Hungarian
Login
Detailed search
K
N
O
L
I
B
R
I
Questions/quizzes: polymorphism
Text
Age
Difficulty
Value
Creator
Published
DETAILS
en
Given the following Java code: class Dog { } class Spaniel extends Dog { } class DogTest { public static void main(String [] args) { Dog d1 = new Dog(); Spaniel h1 = new Spaniel(); Dog d2 = h1; Spaniel h2 = (Spaniel) d2; Spaniel h3 = (Spaniel) d1; } } What happens when we compile and run this code?
java
scjp
polymorphism
Ⓐ
4
-
Szabolcs
2012.01.20.
@*0*3*0*0%*Ⓐ (Ⓐ)*4 (4)*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*
QUESTION TEXT
Favorited
Tried
Solved correctly
Average %
Recommended age
Difficulty level
Difficulty
(
)
Recommended age
(
)
Overall value
(
)
Tagging
(
)
Precision
(
)
Clarity
(
)
Create new question
Draft questions
Draft quizzes
Favorites
Import questions
Export own questions
New items
Top themes and tags
Badges
Question of the minute
hu
Melyik Afrika legfejlettebb országa?
természetismeret
földrajz
@*0*4*2*50%*⑫ (⑫)*3 (3)*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*- / -*0 / 0 vote*
QUESTION TEXT
Favorited
Tried
Solved correctly
Average %
Recommended age
Difficulty level
Difficulty
(
)
Recommended age
(
)
Overall value
(
)
Tagging
(
)
Precision
(
)
Clarity
(
)