Here is a list of the main and most commonly used java packages. Packages are imported using import <package name>;
, for example import java.net.*;
java.applet
: includes classApplet
and other methods that allow applet creation.javax.swing.JApplet
is used when an applet enhances GUI swing componentsjava.io
: includes classes for data input and outputjava.net
: includes classes for network programming like socket and datagram programming.java.rmi
: incudes classes and methods for creating applications for distributed computing.java.security
: includes classes for authorisation and data encryption.javax.swing
: incudes classes for GUI.java.sql
: incudes classes for connection with SQL databases.