Advanced Java

Advanced Java is the concept of java fundamentals such as Applet, Swing, Socket, Servlet, JDBC, and JavaBeans etc. Advanced Java is used for web-based application and it is two-tier architecture between client and server.

An Applet is contained in the java.applet package. The applet contains several methods that give you detailed control over the execution of your applet. In addition, java.applet also defines three interfaces: AppletContext, AudioClip, and AppletStub.

Types of Applets:

There are two types of Applets:

1. Abstract Window Toolkit (AWT): AWT provides the Graphical User Interface (GUI).

2. Swing-based Applets: Swing applets use the Swing classes to provide the GUI. Swing offers a richer and often easier-to-use user interface. Thus, Swing-based applets are now the most popular.

  • Java Beans are very important because it allows us to build complex systems from software components. These components may be provided by you or supplied by one or more different vendors. Java Beans defines an architecture that specifies how these building blocks can operate together.
  • Java has a different socket class that must be used for creating server applications. The ServerSocket class is used to create servers that listen for either local or remote client programs to connect to them on published ports.