aspose file tools
The moose likes Java in General and the fly likes Is casting and parsing the same Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Is casting and parsing the same" Watch "Is casting and parsing the same" New topic
Author

Is casting and parsing the same

Shirhan Ousmand
Greenhorn

Joined: Apr 21, 2008
Posts: 1
What really is the difference between them?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35249
    
    7
This seems to have nothing to do with Application Frameworks -which is what this forum is about-, so I'll move it to a more appropriate place.


Android appsImageJ pluginsJava web charts
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32693
    
    4
What is the difference between an elephant and a cup of tea? They are that different.

There are two kinds of casting: primitive where you change the type and maybe value of a number, and class casting where you reming the JVM which type (class) a variable is.

Parsing means going through some text (String, file, etc) and working out what its different parts (words, tokens, etc) mean.
Steve Fahlbusch
Ranch Hand

Joined: Sep 18, 2000
Posts: 491
    
    2

Ok an elephant is a big grey animal and cup of tea is a consumable, cafinated beverage.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
Q: What's the difference between a chiropodist and a drummer?

A: One bucks up the feet and the other ... (well, you work it out)

Sorry, but this is a silly thread anyway.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.<br /> <br />#:^P
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32693
    
    4
Oh, what happens when I have to go away for most of the day! :roll:
 
 
subject: Is casting and parsing the same