This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes dynamic casting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dynamic casting" Watch "dynamic casting" New topic
Author

dynamic casting

Christopher Au
Greenhorn

Joined: Jul 26, 2007
Posts: 21
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

Joined: Aug 16, 2005
Posts: 14950
    
  26

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?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
Have you checked out Aspose?
 
subject: dynamic casting
 
jQuery in Action, 3rd edition