wood burning stoves*
The moose likes Java in General and the fly likes Downcasting in Java. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Downcasting in Java." Watch "Downcasting in Java." New topic
Author

Downcasting in Java.

Shankara Sharma
Ranch Hand

Joined: Feb 06, 2012
Posts: 41
How can we do down casting in Java? Please provide an example.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
The child type should be specified in brackets
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Shankara Sharma wrote:How can we do down casting in Java? Please provide an example.


In the future, please ShowSomeEffort(⇐click) and SearchFirst.(⇐click)

java downcasting example
 
Consider Paul's rocket mass heater.
 
subject: Downcasting in Java.
 
Similar Threads
zipping as self extracting exe
J2EE
class
WA #2 ..... word association
c++ or Java--your suggestions please