Java Reference
In-Depth Information
thrown out of
main( )
. As mentioned earlier in this chapter, such an approach is common
when reading from the console. Of course, you can handle these types of errors under pro-
gram control, if you choose.
Here is a sample run: