Types of Java Applications
Types of Java Applications
In this post, we will learn about different types of Java applications. Java is a general-purpose, object-oriented programming language. We can develop different types of Java applications.
Some of the different types of Java Applications are as follows:
- Stand-alone Applications
- Distributed Applications
- Mobile Applications
Stand-alone Applications
Standalone applications are Java client applications that run on a single local device or computer. Broad categories are:
- Console Applications
- Desktop GUI Applications
Java Applets
Java Beans
Distributed Applications
- Web Applications
- Enterprise applications
Console Applications
Console-based Java applications are headless and do not support Graphical User Interface. These applications accept command-line arguments and are mostly used for automation and other utility programs.
Desktop Applications
Desktop applications are window-based applications with GUIs( Graphical User Interfaces) developed using AWT, Swing, and JavaFX and can be deployed to any operating system with a JVM.
Applets
Applets are special Java programs that run on Java-enabled web browsers. Applets are rich GUIs delivered and capable of running through a browser like Internet Explorer, Firefox, Chrome, etc.
Java Beans
Java Beans are reusable, self-contained, portable, and platform-independent software components that are used in reusable Java applications.
Web Applications
Java programming language can be used to develop server-side web applications. Web applications are deployed on web containers and run on web servers. ( .war files) The main technologies used are Core Java, Java Servlets, JSP( Java Server Pages), JSF(Java Server Faces), HTML, CSS, etc.
Enterprise Applications
Java Enterprise Edition(J2EE) applications are enterprise, multi-tier distributed applications. ( .ear files ) These applications are more sophisticated and complex than just serving dynamic web pages on the server. The main technologies are Core Java, EJB(Enterprise Java Beans), JDBC, JMS, Struts, Servlets, JSP, Hibernate, etc. Enterprise applications should support high-level security, high performance, and high traffic (load balancing and clustering)
Mobile Applications
Java can be used to create mobile applications. Mobile applications are applications developed using JavaME( Mobile Edition) that run on small-screen mobile devices like Android and iOS devices.
Microservice
A microservice is a small, independent, and loosely coupled service that performs a single business function. In a microservices architecture, an application is broken down into a collection of such services, each responsible for a specific feature or functionality.
Types of Java Applications
Application Type | Description | Example |
---|---|---|
Stand-alone Application | Runs independently on a user’s machine without the need for a browser or web server. | Calculator, Media Player |
Desktop Application | Graphical applications installed on personal computers using GUI frameworks like Swing or JavaFX. | IntelliJ IDEA, Eclipse IDE |
Java Applet | Small programs that run inside a web browser; mostly obsolete now due to security issues and lack of support. | Interactive games or animations on web pages (historically) |
Web Application | Applications that run on a server and can be accessed via a browser using technologies like Servlets, JSP, or Spring MVC. | Online banking portal, eCommerce sites |
Enterprise Application | Large-scale, distributed systems that support business processes; built using Java EE or Jakarta EE technologies. | ERP systems, CRM software |
Mobile Application | Applications developed for mobile devices using Java (especially Android). | WhatsApp (Android version), Google Maps app |
Microservice | A small, independent service that performs a specific business function and is part of a larger system architecture. | Payment Service in an eCommerce platform |
—
Java Tutorials
Java Tutorial on this website: