Thursday, 21 September 2023

Java Application

Java Application

  • Using the Java programming language, we can create two main types of Java applications: standalone applications and Enterprise applications.
Standalone Applications

  • If we design and execute any java application without using client-server architecture than that java application is called as Standalone application.

  • Two types of Standalone application
  1. CUI Application (Characters User Interface)
  • It will be designed in such a way to take input data from users through command prompt and to provide output data to the user through the same command prompt, where the command prompt is acting as an user interface.
  • It is supporing characters data.

2.   GUI Application(Graphical User Interface)                         
  • It is standalone application, it will be designed such a way to take input from users through the collection of graphics component and to provide out data to the users through the same collection of graphics components.
  • It is supporting graphic data.
  • To prepare applications, java has provided some core libraries
  • i.e: java.lang, java.io, java.util, java.awt, javax.swing etc.

Enterprise Application
  • If we design execute any java application on the basis of client-server architecture or by distributing application logic over multiple machine then that java application is called as Enterprise Application.
Two types of Enterprise Application

  1. Web Application
  • It is a client-server application, where the complete application logic will be distributed over server machine.
  • In web Application client must be browser.
  • JVM is required for server side.



2.Distributed Application
  • Distributed application is a client-server application, where the complete application logic will be distributed over both client and server machine.
  • In Distributed application client may be a java program servlet, JSP Page framework, structs, spring application.
  • JVM is required for both client-server side.


Difference B/W Web Application and Distributed Application





What is the purpose of web application?
  • The purpose of web application is to provide dynamic response from server machine.
What is the purpose of Distributed application?
  • The purpose of distributed application is to establish communication b/w local machine & Remote machine services from Remote machine to local machine.

In Web application , there are Two types of Response
  1. Static Response
  • Static response is the response generated from service without executing any resource from server machine and without performing any action at server machine.

2. Dynamic Response
  • If we generate any resource from server by executing a particular resource or by performing an action at server machine than that response is called Dynamic Response.
  • To generate dynamic response server has to execute an application at server machine called as web application.
  • To prepare web applications at server we have to use a set of tech called as webTech.
  • for eg:- CGI, Servlets JSP etc.

Thanks
Matri Sharma

No comments:

Post a Comment

Servlet in AEM/Sling Servlet

  What is Servlet? A servlet is a Java class that runs on the server side where the application resides. It acts as a middle layer between t...