This figure illustrates the New Java Class dialog box.
In the New Java Class dialog box, enter a package name. In this tutorial, the value will typically be com.oracle.handson.
Enter the name of the class in the Name field.
Under Which method stubs would you like to create?, select the public static void main(Stringargs) if you want the file to be runnable. Select Constructors from superclass check box if you want stubs of the constructors from the new class's superclass to be added. Inherited abstract methods should be selected by default. This option adds stubs of any abstract methods from superclasses or methods of interfaces that need to be implemented.