This document provides information about advanced Java concepts including Java Database Connectivity (JDBC), Java Servlets, and Java Server Pages (JSP). It discusses what each technology is used for and some key features. Hibernate, Spring, and Struts frameworks are also introduced along with brief explanations of what each is used for.
3. Introduction
• Advance java is having the concept of Java fundamentals. Advance
java is used to developing the web-based application and enterprise
application. Advance java differentiation such as in web, DCOM, or
database. Advance java is the next concept of java. Advance Java is
used for dynamic Web site creation, networking &database
handling. Advanced Java includes higher-level complex things that
you should only try when you have your basics right. Advance java
is used to the application server Advance java technology through
many frameworks, for example, Hibernate, Spring, Struts, Web
Services. Advance java is mostly web programming concepts with
database connectivity and server level programming which modifies
the data at the server level.
4. Advance Java
• Advanced Java is everything that goes beyond Core
Java – most importantly the APIs defined in Java
Enterprise Edition, includes Servlet programming, Web
Services, the Persistence API, etc. It is a Web & Enterprise
application development platform which basically follows
client & server architecture.
5. Need for Advance Java
• Advance Java i.e. JEE (Java Enterprise Edition) gives you the library to
understand the Client-Server architecture for Web Application
Development which Core Java doesn’t support.
• J2EE is platform Independent, Java Centric environment for developing,
building & deploying Web-based applications online. It also consists of a
set of services, APIs, and protocols, which provides the functionality that is
necessary for developing multi-tiered, web-based applications.
• You will be able to work with Web and Application Servers like Apache
Tomcat, Glassfish etc and understand the communication over HTTP
protocol. But, in Core Java, it is not possible.
• There are a lot of Advance Java frameworks like Spring, JSF,
Struts etc. which enable you to develop a secure transaction based web
apps for the domains like E-Commerce, Banking, Legal, Financial,
Healthcare, Inventory etc.
6. • For better understanding, I have divided this into three sections. Each
of these section deals with one of the most important concepts of
advanced Java:
• JDBC (Java Database Connectivity)
• Java Servlets
• JSP (Java Servlet Pages)
7. Introduction to JDBC
• JDBC is a standard Java API for a database-independent
connectivity between the Java programming language and a
wide range of databases. This application program interface
lets you encode the access request statements, in Structured
Query Language (SQL). They are then passed to the program
that manages the database. It mainly involves opening a
connection, creating a SQL Database, executing SQL queries
and then arriving at the output.
8.
9. Introduction to Servlets
• A servlet is a Java programming language class that is used to
extend the capabilities of servers that host applications accessed
by means of a request-response programming model.
Although servlets can respond to any type of request, they are
commonly used to extend the applications hosted by web
servers.
Servlet can be described as follows:
• Servlet is a technology which is used to create a web application.
It is an API that provides many interfaces and classes including
documentation.
• Servlet is an interface that must be implemented for creating any Servlet.
• It is also a class that extends the capabilities of the servers and responds to
the incoming requests. It can respond to any requests.
10.
11. Java Server Pages
• JSP or Java Server Pages is a technology that is
used to create web application just like Servlet
technology. It is an extension to Servlet – as it
provides more functionality than servlet such as
expression language, JSTL, etc. A JSP page consists
of HTML tags and JSP tags. The JSP pages are
easier to maintain than Servlet because we can
separate designing and development. It provides
some additional features such as Expression
Language, Custom Tags, etc.
12. • Now let’s see various features of JSP with the help of below figure
13. Various features of JSP:
• Portable: JSP tags will process and execute by the server side web container, So that
these are browser independent and J2EE server independent.
• Powerful: JSP consists of bytecode so that all Java features are applicable in case of JSP
like robust, dynamic, secure, platform independent.
• Flexible: It allows to define custom tags so that the developer can fill conferrable to use
any kind, framework based markup tags in JSP.
• Fast Development: If JSP page is modified, we don’t need to recompile and redeploy the
project. The Servlet code needs to be updated and recompiled if we have to change the
look and feel of the application.
• Tracking the User: JSP allows us to track the selections made by the user during user
interaction with the website by maintaining the information in the session or cookies
• Easy: JSP is easy to learn, easy to understand and easy to develop. JSPs are more
convenient to write than Servlets because they allow you to embed Java code directly
into your HTML pages.
14. What is hibernate in Java and why we used:
• Hibernate ORM (or) Hibernate is an open-source object-
relational mapping tool for Java to access relational database
management systems. Hibernate provides an easy way to map
one Java class per mapped database table.
• Hibernate solves object-relational impedance mismatch
problems by replacing direct, persistent database accesses with
high-level object handling functions.
• Its primary feature is mapping from Java classes to database
tables and then mapping from Java data types to SQL data types.
• Hibernate Tools is a tool kit for Hibernate v3 implemented as an
integrated suite of Eclipse plugins, together with an Ant task for
integration into the build cycle.
• Hibernate Tools is a core component of JBoss Tools and also part
of JBoss Developer Studio.
15. What is spring in Java and why we used:
• This popular open-source Spring framework can be
used with any Java application.
• Here We learn to work in Spring AOP, Spring JDBC,
Spring ORM, Spring Web MVC and Spring Boot.
• Spring framework is used to develop software
applications.
• It has a lot of components at the same time it provides
different functionalities.
16. What is Strut in Java
• Struts in Java is an elegant, extensible framework
for creating enterprise-ready Java web applications.
• This framework is designed to streamline the full
development cycle from building to deploying and
maintaining applications over time.
• Apache Struts 2 was originally known as Web Work
2.
• It provides a tag library, you can also use action
classes to perform better operations.
• Please see our publish page for further details.