Wednesday, September 19, 2007

Java packages you should know and use

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 class Applet and other methods that allow applet creation. javax.swing.JApplet is used when an applet enhances GUI swing components
  • java.io: includes classes for data input and output
  • java.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.