Course Content‎ > ‎Session 5‎ > ‎

Exercises

Answer the following questions

  1. Packages can also be called  ............................
  2. To create GUI for your Java program, you have to import .......................... package to your program
  3. ........................... package has to be imported to create applets.
  4. Two different packages can have same class names (True / False)
  5. How do we tell Java that we want to use a particular package in a file?
  6. An educational institution wishes to maintain a database of its employees.  The database is divided into a number of classes whose hierarchical relationships are shown below. The figure also shows minimum information required for each class. Specify all the classes and define methods to create the database and retrieve individual information as and when required.

Comments