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

C
case

A Java keyword, case is used inside a switch block to define a set of statements to be executed conditionally, depending on whether the case value matches the supplied switch value.

cast

To convert one data type to another. There are implicit primitive casts, in which you do not write the code to perform the conversion—it is done automatically. An explicit primitive cast demands that you write the code to perform the cast, because you are narrowing the primitive (putting it into a smaller container—for example, casting a long into an int). Narrowing conversions can cause loss of precision, which is why you must explicitly perform it.

catch

A Java keyword used to declare a block of statements to be executed in the event that an exception is ...

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