A good answer might be:

No. You can use it to test for several possible classes, but only if you know what the possibilities are.

End of the Chapter

You have reached the end of the chapter. You may wish to review the following. Click on a blue subject that interests you to go to where it was discussed. To get back here, click on the "back arrow" button of your browser.

The next chapter will discuss interfaces—yet another aspect of Java you will need to know to do graphical user interface programming.



Click here
    Back to the main menu.

You have reached the end of the chapter.