• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can it compile

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A is not a Runnable , how can all these compile

 
Campbell Ritchie
Sheriff
Pie
Posts: 49812
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it? What happened?
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It compiles successfully
 
Keerthana Bijoor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cast between an unrelated class and interface is allowed because they might have a common subtype.
 
Winston Gutkowski
Bartender
Pie
Posts: 10508
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahtab Alam wrote:It compiles successfully

Maybe; but I'll bet you got a LOT of warnings about unchecked casts.

Winston
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic