aspose file tools*
The moose likes Beginning Java and the fly likes Comparing runtime type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Comparing runtime type" Watch "Comparing runtime type" New topic
Author

Comparing runtime type

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

Let's suppose I have a method called checkType with the
signature as follows:

Within the checkType method, I want to be able to work
on only one specific types of Class. So I do this:

However I've also seen two other variations of this namely:

    [list]
    [/list][list]
    [/list]
    Which one do you use most often and why ?
    Pho

Regards,

Pho
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Comparing runtime type