O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required