Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RuntimeException  RSS feed

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

answer is 3 only
But I think it should be 3 and 4
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Preethi refer this thread at the end Dan has given a very good explanation of Casting.
Hope this helps you.
reshma
 
preeti khane
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my mistake
I kept thinking C extends B
But C only extends A then there is no problem
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!