1. The program
Problem.java
doesn't compile. What do you need to do to make it compile? Why?2. Use the Java API documentation for the
Box
class (in thejavax.swing
package) to help you answer the following questions.a. What static nested class does
Box
define?
b. What inner class doesBox
define?
c. What is the superclass ofBox
s inner class?
d. Which ofBox
s nested classes can you use from any class?
e. How do you create an instance ofBox
sFiller
class?
Check your answers.1. Get the file
Class1.java
.Compile and runClass1
. What is the output?