Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic casting

 
Christopher Au
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was reading the following post

http://www.coderanch.com/t/405877/java/java/Dynamic-Casting

and in it a comment was about why dynamic casting was needed.

lets say you are using castor and you have generated some files which need to be loaded and instantiated so that you can use these classes immediately. Would dynamic casting be of use in this situation.

Hope this does not sound like a complete idiotic question.

Thanks

Chris
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15435
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There really is not something called "dynamic casting". Did you read the replies in the other thread; especially Peter Chase and Ilja Preuss explain it well.

Can you post some code to show what you mean exactly by "dynamic casting" and how this is different from a normal cast?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic