Chapter 18. Casting and Type Conversions

DO OR DIE

  • Stop

  • Drop

  • Roll

Here we go, into the land of casting. This is where we tell you to empty the rusty old coffee can containing your meager savings. You'll need a bus ticket, since we're sending you to Hollywood to be in pictures.

It's going to be just terrific.

But in case our blockbuster career gunning down everything in sight alongside an ever-balder Bruce Willis doesn't work out, let's do what every out-of-work Hollywood actor does: get a day job by learning runtime type information and casting in Java. But just until we get our big break.

Get Java Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.