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