Exercises

  1. Describe the three different kinds of inner class. Find an example of one kind of inner class in the Java run-time library source code. Describe it.

  2. What is a static nested class? Give an example of where you might use one.

  3. Find an example of a local inner class in the Java run-time library, and explain why it is used there.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.184.200