wrapper classes in Java

Describe the wrapper classes in Java.Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type.

Following table lists the primitive types and the corresponding wrapper classes:
Primitive - Wrapper
boolean  - java.lang.Boolean

byte - java.lang.Byte
char - java.lang.Character
double - java.lang.Double
float - java.lang.Float
int - java.lang.Integer
long - java.lang.Long
short - java.lang.Short
void - java.lang.Void

Java Class as Applet as well as Application

Can you write a Java class that could be used both as an applet as well as an application?
A. Yes. Add a main() method to the applet.

Bring JFrame JDialog Window to front java swing

To bring JFrame or JDialog ... or Window (JFrame and JDialog inherits Window)   to front in JAVA, fun the code below :

java.awt.EventQueue.invokeLater(new Runnable() {
    @Override
    //myFrame is object of Window or JFrame
    public void run() {
        myFrame.toFront();
        myFrame.repaint();
    }
});