This document is a summer training report submitted by Nitesh Saini to fulfill the requirements for a Bachelor of Technology degree in Computer Science Engineering. The report details Nitesh's training at Technoglobe Organization of VSM InfoTech, where he learned about advance Java topics including object oriented programming and software engineering. As part of a student project, Nitesh helped develop a text editor application and was introduced to concepts like servlets, applets, and electronic services. The successful project recommended using XML instead of HTML for improved structure.
This is an internship presentation that I created as part of the internship curriculum, you can use this presentation for a web developer internship presentation that you might need to give in your college.
If you want some animation please see Internship Presentation 2 that I uploaded.
It has basic web developer tools explained like Git, HTML, Java etc.
Web development on web was part of a project in the final year of Engineering to demonstrate the implementation and application of SaaS using Microsoft Silverlight.
The application facilitated creation of web pages without having a need to install any HTML editor based software.
The AI systems we are using or we'll use in future will be judging our IQ & interact in a way we can't understand right now,in thought of that,i used some basic questions that might help the self learning program to judge our age & then treat us on its own.
NOTE:This project is only for calculating your mental age ,based on your choices.
Interest Assignments
Partnership Assignments
Percentages Assignment
Profit and Loss
Assignments
Proportion Assignments
Set Theory Assignments
Time and Distance Assignments
Time and Work Assignments
Permutation Assignments
Allegation Assignments
AP,GP Assignments
This is an internship presentation that I created as part of the internship curriculum, you can use this presentation for a web developer internship presentation that you might need to give in your college.
If you want some animation please see Internship Presentation 2 that I uploaded.
It has basic web developer tools explained like Git, HTML, Java etc.
Web development on web was part of a project in the final year of Engineering to demonstrate the implementation and application of SaaS using Microsoft Silverlight.
The application facilitated creation of web pages without having a need to install any HTML editor based software.
The AI systems we are using or we'll use in future will be judging our IQ & interact in a way we can't understand right now,in thought of that,i used some basic questions that might help the self learning program to judge our age & then treat us on its own.
NOTE:This project is only for calculating your mental age ,based on your choices.
Interest Assignments
Partnership Assignments
Percentages Assignment
Profit and Loss
Assignments
Proportion Assignments
Set Theory Assignments
Time and Distance Assignments
Time and Work Assignments
Permutation Assignments
Allegation Assignments
AP,GP Assignments
The interest of coding aptitudes is soaring and not just only for designers, writing computer programs is assuming a greater job in each profession way. The main importance of 'Code Up' is to learn to code interactively. In this project we are providing interface with different levels of question to enhance their programming skills based on the level of the questions solved. We are using Servlet, JSP and oracle database with Model 2 architecture so that request and response can be handled easily. We are using reflection Application Program interface API and runtime API for the execution and compilation of the code at runtime. An online based program compiler to enhance platform independent services for multiple languages support. Regardless of dynamic working nature of compiling the program, it is also capable of handling multiple request of code execution. Even though it is specially designed for student programmers who want to learn and improve their knowledge about the multiple languages and understand the various complexities of code to be improved before implementing it into real world software as a part or a component. This platform provides a web portal where one makes their account for daily improvement as well as to gather information about their coding knowledge growth and other important guide. It will help indivisible, mainly student to increase their knowledge in the field of coding .The present working code compiler is available but it has a slate limitation it won't execute all the programming languages. Moreover it might sometime throw an error. Some of the language like java IDE Integrated Development Environment Eclipse, Net Beans takes up a lot of space in the personal computer but the portable code compiler is completely mobile and can be accessed from anywhere in the world. Rimmy Kumari | Ganeshan M "Portable Code Compiler" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456-6470, Volume-4 | Issue-4 , June 2020, URL: https://www.ijtsrd.com/papers/ijtsrd30911.pdf Paper Url :https://www.ijtsrd.com/computer-science/programming-language/30911/portable-code-compiler/rimmy-kumari
Online Test Management System Project Power Point presentation. The Project was made in Servlets and MySQL. The PPT contains a detailed description of JAVA, Servlets and Databases.
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
Automobile Management System Project Report.pdfKamal Acharya
The proposed project is developed to manage the automobile in the automobile dealer company. The main module in this project is login, automobile management, customer management, sales, complaints and reports. The first module is the login. The automobile showroom owner should login to the project for usage. The username and password are verified and if it is correct, next form opens. If the username and password are not correct, it shows the error message.
When a customer search for a automobile, if the automobile is available, they will be taken to a page that shows the details of the automobile including automobile name, automobile ID, quantity, price etc. “Automobile Management System” is useful for maintaining automobiles, customers effectively and hence helps for establishing good relation between customer and automobile organization. It contains various customized modules for effectively maintaining automobiles and stock information accurately and safely.
When the automobile is sold to the customer, stock will be reduced automatically. When a new purchase is made, stock will be increased automatically. While selecting automobiles for sale, the proposed software will automatically check for total number of available stock of that particular item, if the total stock of that particular item is less than 5, software will notify the user to purchase the particular item.
Also when the user tries to sale items which are not in stock, the system will prompt the user that the stock is not enough. Customers of this system can search for a automobile; can purchase a automobile easily by selecting fast. On the other hand the stock of automobiles can be maintained perfectly by the automobile shop manager overcoming the drawbacks of existing system.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Event Management System Vb Net Project Report.pdfKamal Acharya
In present era, the scopes of information technology growing with a very fast .We do not see any are untouched from this industry. The scope of information technology has become wider includes: Business and industry. Household Business, Communication, Education, Entertainment, Science, Medicine, Engineering, Distance Learning, Weather Forecasting. Carrier Searching and so on.
My project named “Event Management System” is software that store and maintained all events coordinated in college. It also helpful to print related reports. My project will help to record the events coordinated by faculties with their Name, Event subject, date & details in an efficient & effective ways.
In my system we have to make a system by which a user can record all events coordinated by a particular faculty. In our proposed system some more featured are added which differs it from the existing system such as security.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Vaccine management system project report documentation..pdfKamal Acharya
The Division of Vaccine and Immunization is facing increasing difficulty monitoring vaccines and other commodities distribution once they have been distributed from the national stores. With the introduction of new vaccines, more challenges have been anticipated with this additions posing serious threat to the already over strained vaccine supply chain system in Kenya.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Cosmetic shop management system project report.pdf
Advance java summer training report
1. i
Technoglobe Organization of VSM InfoTech
A
SUMMER TRAINING REPORT
ON
Advancejava
Submitted
In partial fulfillment of the
Requirement for the award of the degree of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE ENGINEERING
Submitted to: Submitted by:
Mr. YOGESH SHARMA NITESH SAINI
Head of department 14EEJCSE015
Department of Computer Science Engineering
GOVERNMENT ENGINEERING COLLEGE JHALAWAR
Jhalrapatan, Dist. Jhalawar-326023
September, 2017
2. ii
Candidate’s Declaration
I hereby declare that the work, which is being presented in the Seminar report, entitled
“Technoglobal organization” in partial fulfillment for the award of Degree of “Bachelor of
Technology” in Dept. Of Computer science & Engineering and submitted to the Department
of Computer science & Engineering, Government engineering college jhalawar.
Rajasthan Technical University is a record of my own investigations carried under the Guidance
of Mr. yogesh Sharma Department of Computer science & Engineering, Government
engineering college jhalawar.
I have not submitted the matter presented in this report anywhere for the award of any other
Degree.
Nitesh saini
Roll No: 14EEJCS015
4. iv
ABSTRACT
The Advance Java training done by the Publishing Systems and Solutions Unit
in Technoglobe, jaipur, sets to create and develop Software or other web
technology to enable desktop access to Information Technology sector.
The students’ project, which contributed to part of the Project, allowed the
students to acquire the knowledge of Object Oriented Programming and
Software Engineering.
The Text Editor Application, the initial part of the E-service problem set, served
as an introduction to object oriented programming in Java. The Text Editor
Applet faces an applet security that severely restricts functionality, particularly in
file access and printing.
The project introduced the use of servlet to handle these functions remotely
instead. The Text Editing Service then introduced a new electronic service,
which goes beyond the simple client/server model. The former employs many
small service components and make sure of the e-speak framework to define the
text editor service and interface. From the results of the successful project, it is
recommended that the Extensible Markup Language, XML, be used in place of
the HTML, which has limited internal structure. XSL, a transformation language
for transforming a XML document into an HTML document, can be used to
convert the Text Editing applet to talk to the e-speak service.
5. v
ACKNOWLEDGEMENT
I am grateful to my training guide in Technoglobe Organization of VSM InfoTech
whose encouragement and cooperation has been sources of great inspiration; I express my
heartful thanks to Mr. Narendra Kumar Sir for his pains taking effort and enthusiastic
cooperation to make my training possible.
I express heartily thanks to guide by Mr. Yogesh Sharma (Head of Computer Science
Engineering Dept.) for giving me an opportunity the summer training at Technoglobe
Organization of VSM InfoTech Jaipur.
Nitesh Saini
14EEJCS015
B.Tech. (IV Year)
Computer Science & Engineering
6. vi
COMPANY PROFILE
Technoglobe (International Accredited Organization IAO Authorized Institution) is a Flagship of
VSM Infotech which is a Government of Rajasthan registered & ISO 9001:2008 certified
offshore Software Development & IT Training Company established in 2001.
This is the same company that has driven TATA-CMC & also HCL Learning Ltd in Jaipur from
year 2005 to 2016.
Technoglobe is authorized partner of HPE (Hewlett Packard Enterprise), MICROSOFT,
ADOBE, AUTODESK, COMPTIA, IIJT-TEAMLEASE & MONSTER.COM
Technoglobe employs highly qualified professionals with Ph.D., M.Tech, B.Tech, and MCA &
MBA. It have well disciplinary team comprising education experts, subject matter experts,
instructional designers, quality experts, Academic advisors, experienced Placement officers,
Project Managers & Team leaders.
Technoglobe is an innovative and cost effective world-class provider of Customize Application
Development, Client Server, Mobile and Web Based Solution & IT Training in (.NET, JAVA,
PHP, Android, Networking, Embedded System, AutoCAD, Web Designing, and SEO, Testing
etc.).
Technoglobe relies on a pool of highly qualified professionals armed with sound and diversified
technical skill sets. Our team develops software solutions for international tech giants and is
trained to provide offshore, onshore and onsite services.
For the best Placement of our students we have tie-up with the biggest Placement Giant that is
Monster.com
Enhance professional and social skills of each learner through technology empowered learning in
campus. Institutional Alliance program of Technoglobe delivers training that are relevant for all
core branches of engineering viz., Civil, Mechanical, Electrical, Electronics & Communication,
Computer Science & IT. These training programs provide the much needed industry skills that
the student requires to make them employment ready.
7. vii
TABLE OF CONTENTS
.
Candidate declaration’s…............................................................................................I
Certificate…………………………………………………….………………..…II
Abstract ………………..….…………………………………….………..…III
Acknowledgement.................................................................................................IV
Company Profile……………………….…………………….…………….…V
Table of Contents………………………………………………………….....VI
List of Figures……………………………………………………….………VII
9. ix
LIST OF FIGURES
Figure no. Title Page no.
3 Multithreading life Cycle 4
5.1 Java AWT Hierarchy 7
6.1 Hierarchy of Java Swing classes 8
7.1 JDBC drivers 9
8.1 JSP 12
8.2 JSP compilation 13
8.3 JSP Tags 14
9.1 Lifecycle of Servlet 18
9.1 Lifecycle of Servlet 18
11.1 Data flow diagram 21
11.2 Registration Page 22
11.3 Login page 22
11.4 Transfer money page 23
10. 1
CHAPTER – 1
TECHNOLOGY
1. INTRODUCTION TO JAVA
Java is a programming language initially developed by Sun Microsystems by James Gosling and
released as a principal component of Sun Microsystems' Java platform in 1995. Although the
language gets much of its syntax from C and C++ it has a less complicated object model and
lesser low-level services. Java applications are typically compiled to byte code (class file) that
can run on any Java Virtual Machine (JVM) regardless of computer architecture .Java is a
general-purpose, object-oriented language that is specifically designed to have as few
implementation dependencies as possible. It is intended to let application developers "write once,
run anywhere". Java is currently one of the most standard programming languages in use, and is
extensively used from application software to web applications.
There were five primary goals in the creation of the Java language.
It should be "simple, object-oriented and familiar".
It should be "robust and secure".
It should be "architecture-neutral and portable".
It should execute with "high performance".
It should be "interpreted, threaded, and dynamic".
2. J2EE
Short for Java 2 Platform Enterprise Edition, J2EE is a platform-independent, Java- centric
environment from Sun for developing building and deploying Web-based enterprise applications
online. The J2EE platform consists of a set of services, APIs, and protocols that provide the
functionality for developing multitier, Web-based applications.
Some of the key features and services of J2EE
At the client tier, J2EE supports pure HTML, as well as Java applets or applications. It relies on
Java Server Pages and servlet code to create HTML or other formatted data for the client
Enterprise JavaBeans (EJBs) provide another layer where the platform's logic is stored. An EJB
server provides functions such as threading, concurrency, security and memory management.
These services are transparent to the author.
Java Database Connectivity (JDBC), which is the Java equivalent to ODBC, is the standard
interface for Java databases.
The Java servlet API enhances consistency for developers without requiring a graphical user
interface.
11. 2
CHAPTER – 2
COLLECTION
Collection framework provides a well-designed set of interface and classes for storing and
manipulating groups of data as a signal unit a collection. It provides a standard programming
interface to many of the most common abstractions, without blundering the programmer with too
many procedure and interfaces.
Collocation tree part
1. List-Array List
1.2. Set- Tree set, Hash set, Link hash set
1.3. Map- Hash Map, Hash Table, Tree Map
2. Benefits of the Java Collections Framework
2.1 Reduces programming effort
By providing useful data structures and algorithms, the Collections Framework frees you to
concentrate on the important parts of your program rather than on the low-level "plumbing"
required to make it work. By facilitating interoperability among unrelated APIs, the Java
Collections Framework frees you from writing adapter objects or conversion code to connect
APIs.
2.2 Increases programspeedand quality
This Collections Framework provides high-performance, high-quality implementations of useful
data structures and algorithms. The various implementations of each interface are
interchangeable, so programs can be easily tuned by switching collection implementations.
Because you're freed from the drudgery of writing your own data structures, you'll have more
time to devote to improving programs' quality and performance.
2.3. Allows interoperability among unrelated APIs
The collection interfaces are the vernacular by which APIs pass collections back and forth. If my
network administration API furnishes a collection of node names and if your GUI toolkit expects
a collection of column headings, our APIs will interoperate seamlessly, even though they were
written independently.
2.4. Reduces effortto learn and to use new APIs
12. 3
Many APIs naturally take collections on input and furnish them as output. In the past, each such
API had a small sub-API devoted to manipulating its collections. There was little consistency
among these ad hoc collections sub-APIs, so you had to learn each one from scratch, and it was
easy to make mistakes when using them. With the advent of standard collection interfaces, the
problem went away.
2.5. Reduces effort to design new APIs
This is the flip side of the previous advantage. Designers and implementers don't have to
reinvent the wheel each time they create an API that relies on collections; instead, they can use
standard collection interfaces.
2.6. Fosters software reuse
New data structures that conform to the standard collection interfaces are by nature reusable. The same
goes for new algorithms that operate on objects that implement these interfaces
13. 4
CHAPTER – 3
MULTITHREADING
Java is a multi-threaded programming language which means we can develop multithreaded
program using Java. A multi-threaded program contains two or more parts that can run
concurrently and each part can handle a different task at the same time making optimal use of the
available resources especially when your computer has multiple CPUs.
By definition, multitasking is when multiple processes share common processing resources such
as a CPU. Multi-threading extends the idea of multitasking into applications where you can
subdivide specific operations within a single application into individual threads. Each of the
threads can run in parallel. The OS divides processing time not only among different
applications, but also among each thread within an application.
Multithreading enables you to write in a way where multiple activities can proceed concurrently
in the same program.
1. Life Cycle of a Thread
A thread goes through various stages in its life cycle. For example, a thread is born, started, runs,
and then dies. The following diagram shows the complete life cycle of a thread.
Fig-3 Multithreading life Cycle
Following are the stages of the life cycle −
New − A new thread begins its life cycle in the new state. It remains in this state until the
program starts the thread. It is also referred to as a born thread.
Runnable − after a newly born thread is started, the thread becomes runnable. A thread in this
state is considered to be executing its task.
Waiting − Sometimes, a thread transitions to the waiting state while the thread waits for another
thread to perform a task. A thread transitions back to the runnable state only when another thread
signals the waiting thread to continue executing.
14. 5
Timed Waiting − A runnable thread can enter the timed waiting state for a specified interval of
time. A thread in these state transitions back to the runnable state when that time interval expires
or when the event it is waiting for occurs.
Terminated (Dead) − A runnable thread enters the terminated state when it completes its task or
otherwise terminates. Thread Priorities Every Java thread has a priority that helps the operating
system determine the order in which threads are scheduled.
Java thread priorities are in the range between MIN_PRIORITY (a constant of 1) and
MAX_PRIORITY (a constant of 10). By default, every thread is given priority
NORM_PRIORITY (a constant of 5).
Threads with higher priority are more important to a program and should be allocated processor
time before lower-priority threads. However, thread priorities cannot guarantee the order in
which threads execute and are very much platform dependent. Create a Thread by Implementing
a Runnable Interface If your class is intended to be executed as a thread then you can achieve
this by implementing a Runnable interface.
You will need to follow three basic steps −
Step 1- As a first step, you need to implement a run () method provided by a Runnable
interface. This method provides an entry point for the thread and you will put your complete
business logic inside this method.
Following is a simple syntax of the run () method − public void run ( )
Step 2- As a second step, you will instantiate a Thread object using the following constructor −
Thread (Runnable threadObj, String threadName);
Step 3- Once a Thread object is created, you can start it by calling start () method, which
executes a call to run ( ) method. Following is a simple syntax of start ()
Method − void start ();
15. 6
CHAPTER – 4
JAVA NETWORKING
The term Network programming refers to writing programs that execute across multiple devices
(Computers), in which the devices are all connected to each other using networks. The Java net
package of the J2se API contains a collection of classes and interfaces that provide the low-level
communication details, allowing you to write programs that focus on solving problem at hand.
The java net package provides support for the two common network protocols.
1. The java.net package provides support for the two common network protocols
TCP- TCP stands for transmission control protocol, which allows for reliable communication
between two applications. TCP is typically used over the Internet Protocol, which is referred to
as TCP/IP.
UDP (User Datagram Protocol) - UDP stands for User Datagram Protocol, a connection-less
protocol that allows for packets of data to be transmitters between applications.
2. This chapter gives a good understanding on the following two subjects −
URL Processing- This would be covered separately. Click here to learn about URL Processing
in java language.
Socket Programming- Sockets provide the communication mechanism between two computers
using TCP. A client program creates a socket on its end of the communication and attempts to
connect that socket to a server. When the connection is made, the server creates a socket object
on its end of the communication.
The client and the server can now communicate by writing to and reading from the socket.
16. 7
CHAPTER – 5
AWT (ABSTRACT WINDOWING TOOLKIT)
Java AWT (Abstract Windowing Toolkit) is an API to develop GUI or window-based
application in java.
AWT components are platform-dependent.
AWT components are heavyweight.
AWT doesn't support pluggable look and feel.
AWT provides fewer components than Swing.
AWT doesn't follow MVC (Model View Controller) where model represents data, view
represents presentation and controller acts as an interface between model and view.
1. Java AWT Hierarchy
The hierarchy of Java AWT classes is given below.
Fig-5.1 Java AWT Hierarchy
CHAPTER – 6
17. 9
SWING
Work Flow Java Swing is a part of Java Foundation Classes (JFC) that is used to create
window-based applications. It is built on the top of AWT (Abstract Windowing Toolkit) API
and entirely written in java.
Java swing components are platform-independent.
Swing components are lightweight.
Swing supports pluggable look and feel.
Swing provides more powerful components such as tables, lists, and scroll
Panes, color chooser, tabbed pane etc.
Swing follows MVC.
1. Hierarchy of Java Swing classes
The hierarchy of java swing API is given below.
Fig-6.1 Hierarchy of Java Swing classes
CHAPTER – 7
18. 10
JAVA DATABASE CONNECTIVITY
The Java Database Connectivity (JDBC) API is the industry standard for database-independent
connectivity between the Java programming language and a wide range of databases – SQL
databases and other tabular data sources, such as spreadsheets or flat files. The JDBC API
provides a call-level API for SQL-based database access.
JDBC technology allows you to use the Java programming language to exploit "Write Once, Run
Anywhere" capabilities for applications that require access to enterprise data. With a JDBC
technology-enabled driver, you can connect all corporate data even in a heterogeneous
environment.
1. JDBC drivers
There are commercial and free drivers available for most relational database servers. These
drivers fall into one of the following types:
Type 1 That calls native code of the locally available ODBC driver.
Type 2 That calls database vendor native library on a client side. This code then talks to database
over network.
Type 3, the pure-java driver that talks with the server-side middleware those then talks to
database.
Type 4,the pure-java driver that uses database native protocol
Figure 7.1 JDBC drivers
19. 11
2. Functionality and implementation
JDBC allows multiple implementations to exist and be used by the same application. The API
provides a mechanism for dynamically loading the correct Java packages and registering them
with the JDBC Driver Manager. The Driver Manager is used as a connection factory for creating
JDBC connections. JDBC connections support Creating and executing statements. These may be
update statements such as SQL's CREATE, INSERT, UPDATE and DELETE, or they may be
query statements such as SELECT. Additionally, stored procedures may be invoked through a
JDBC connection. JDBC represents statements using one of the following classes-
Statement - the statement is sent to the database server each and every time.
Prepared Statement - the statement is cached and then the execution path is predetermined on
the database server allowing it to be executed multiple times in efficient manner.
Callable Statement- used for executing stored procedure son the
Database. Update statements such as INSERT, UPDATE and DELETE return an update count
that indicates how many rows were affected in the database.
These statements do not return any other information. Query statements return a JDBC row
result set. The row result set is used to walk over the result set. Individual columns in a row are
retrieved either by name or by column number. There may be any number of rows in the result
set. The row result set has metadata that describes the names of the columns and their types.
There is an extension to the basic JDBC API in the javax.sql. The method Class.forName
(String) is used to load the JDBC driver class.
Example- Class.forName (sun.jdbc.odbc.JdbcOdbcDriver); Used to load the JDBC-ODBC
bridge driver.
When a Driver class is loaded, it creates an instance of itself and registers it with the Driver
Manager. Now when a connection is needed, one of the DriverManager.getConnection()
methods is used to create a JDBC connection
If a database operation fails, JDBC raises a SQLException. There is typically very little one can
do to recover from such an error, apart from logging it with as much detail as possible. It is
recommended that the SQLException be translated into an application domain exception (an
unchecked one) that eventually results in a transaction rollback and a notification to the user.
Finally to summarize, the following points can be stated-
JDBC API provides a database programming interface for Java programs. A Java program can
send queries to a database by
using the JDBC driver.
The java.sql package contains classes that help in connecting to a database, sending SQL
statements to the database and processing the query results.
20. 12
The Connection Object represents a connection with a database. I t can be initialized using the
get Connection () method of the Driver Manager class.
The Prepared Statement object allows you to execute parameterized queries. It can be initialized
using the prepare Statement () method of the Connection object.
The set String () method sets the query parameters of the PreparedStatementobject.
The execute Update () method executes the query statement present in the Prepared Statement
object and returns the number of rows affected by the query.
The Result Set Metadata interface is used to obtain information about the columns stored in a
Result Set object.
21. 13
CHAPTER – 8
JAVA SERVER PAGES
Java Server Pages (JSP) is a technology that helps software developers create dynamically
generated web pages based on HTML, XML, or other document types. Released in 1999 by Sun
Microsystems [1], JSP is similar to PHP, but it uses the Java programming language. To deploy
and run Java Server Pages, a compatible web server with a servlet container, such as Apache
Tomcat or Jetty, is required.
Java Server Pages is a technology which permits software developers to create dynamic request
like HTML, XML in order to answer to client request in the net. This technology lets Java code
and definite pre-defined procedures to be implanted into static content. The syntax in Java Server
Pages includes a supplementary XML tag which is known as JSP actions.
It is made use to evoke the utility of the built-in functions. Moreover JSP permits to establish and
form the JSP tag libraries which operate as an extension to the standard XML or HTML tags.
These JSP tag libraries give a good technique to widen the potentiality of the Web server by
providing an independent platform’s compiler compiles the JSPs into Java Servlets
Figure 8.1 JSP
A JSP compiler may possibly create a servlet in Java code and it is later compiled by the Java
compiler. It might even directly produce the byte code for the servlet. Java Server Pages can be
examined as a high level abstraction of servlets which is practiced as an extension of the
Servlet2.1API.
Java Server Pages are HTML pages embedded with snippets of Java code. It is an inverse of a
Java Servlet
JSPs run in two phases
Translation Phase- In translation phase JSP page is compiled into a servlet called JSP Page
Implementation class
Execution Phase- In execution phase the compiled JSP is processed
22. 14
Figure 8.2 JSP compilation
The Java Server Pages and the Servlets were initially developed at Sun Microsystems. Opening
with version 1.2 of the Java Server Page specification the JSPs have been built under the Java
Community Process. There are quite a few JSP implicit objects that are represented by the JSP
container and it could be mentioned and indicated by the programmers
Config - It gives the data of the servlet configuration
Application - Data's are shared by the servlets and Java Server Pages in theapplication.
Exception - Exceptions are not trapped by the codes in the application.
Out - The data's are written with the help of JSP Writer to the response stream.
Request - Here the Hypertext Transfer Protocol request the object.
Response - Here the Hypertext Transfer Protocol response the object
Session- It is helpful to trace the data's and information about a user from one request to another
request
There are several actions that are performed in JSP actions. A JSP action is nothing but a XML
tags that invokes functionality of the built-in web server.
23. 15
Some of the JSP action is given as follows.
Jsp: param - It indicates a parameter which will be added in addition to the request of the
existing parameters. It is used inside the jsp: params or jsp: include, jsp: forward blocks
Jsp: include - Java Servlet provisionally gives the request and response off to the specific Java
Server Page. The Control will later come again to the existing JSP as soon as the other JSP has
completed. With the help of this the JSP code will be distributed among several other JSPs rather
than replica.
Jsp: forward - This JSP action is used to give off the request/response to the other servlet or
JSP. The control will not come back to the existing JSP.
Jsp: plugin - The ancient version of web browsers like Internet Explorer and Netscape
Navigator use various tags to embed an applet. This action creates the definite tags that are
required for a browser to include an applet.
Jsp: fallback - This action is used to confirm that if the browser
Never gives support to applets.
Jsp:getProperty - It obtains a property from the specific JavaBean.
Jsp: set Property - It sets a property in the specific JavaBean
JSP Tags
Figure 8.3 JSP Tags
24. 16
3. JSP scripting elements
JSP scripting elements let you insert Java code into the servlet that will be generated from the
current JSP page. There are three forms:
Expressions of the form <%= expression %> that are evaluated and inserted into the output,
Script lets of the form <% code %> that are inserted into the
Servlet’s service method, and
Declarations of the form <%! Code %> that are inserted into the body of the servlet class,
outside of any existing method
4. JSP Directive
A JSP Directive affects the overall structure of the servlet class. It usually has the following form
:< %@ directive attribute="value" %> However, you can also combine multiple attribute settings
for a single directive, as follows:
<%@ directive attribute1="value1"attribute2="value2"...attribute="value" %>
There are two main types of directive: page, which lets you do things like import classes,
customize the servlet superclass, and the like; and include, which lets you insert a file into the
servlet class at the time the JSP file is translated into a servlet. The specification also mentions
the table directive, which is not supported in JSP version 1.0, but is intended to let JSP authors
define their own tags. It is expected that this will be the main new contribution of JSP 1.Implicit
objects in jsp are the objects that are created by the container automatically and the container
makes them available to the developers, the developer do not need to create them explicitly.
Since these objects are created automatically by the container and are accessed using standard
variables; hence, they are called implicit objects.
JSP Implicit Objects are as follows:
Request implicit object
The JSP implicit request object is an instance of a java class that implements the
Javax.servlet.http.HttpServletRequest interface. It represents the request made by the client.
The request implicit object is generally used to get request parameters, request attributes, header
information and query string values.
response implicit object
The JSP implicit response object is an instance of a java class that implements the
25. 17
Javax.servlet.http.HttpServletResponse interface. It represents the response to be given to the
client. The response implicit object is generally used to set the response content type, add cookie
and redirect the response.
Out implicit object
The JSP implicit out object is an instance of the javax.servlet.jsp.JspWriter class. It represents
the output content to be sent to the client. The out implicit object is used to write the output
content.
Session implicit object
The JSP implicit session object is an instance of a java class that implements the
javax.servlet.http.HttpSession interface. It represents a client specific conversation. The session
implicit object is used to
Store session state for a single user.
Application implicit object
The JSP implicit application object is an instance of a java class that implements the
javax.servlet.ServletContext interface. It gives facility for a JSP page to obtain and set
information about the web application in which it is running.
Exception implicit object
The JSP implicit exception object is an instance of the java.lang.Throwable class. It is available
in JSP error pages only. It represents the occurred exception that caused the control to pass to the
JSP error page.
Config implicit object
The JSP implicit config object is an instance of the java class that implements
javax.servlet.ServletConfig interface. It gives facility for a JSP page to obtain the initialization
parameters available.
Page implicit object
The JSP implicit page object is an instance of the java.lang.Object class. It represents the current
JSP page. It is not advisable to use this page implicit object often as it consumes large memory.
Page Context implicit object
The JSP implicit page Context object is an instance of the javax.servlet.jsp.PageContext abstract
class. It provides useful context information. Also it contains the reference to implicit objects.
26. 18
CHAPTER – 9
SERVLET
Servlets are protocol and platform independent server-side software components, written in Java.
They run inside a Java enabled server or application server, such as the Web Sphere Application
Server. Servlets are loaded and executed within the Java Virtual Machine (JVM) of the Web
server or application server, in much the same way that applets are loaded and executed within
the JVM of the Web client.
Since servlets run inside the servers, however, they do not need a graphical user interface (GUI).
In this sense, servlets are also faceless objects.
Servlets more closely resemble Common Gateway Interface (CGI) scripts or programs than
applets in terms of functionality. As in CGI programs, servlets can respond to user events from
an HTML request, and then dynamically construct an HTML response that is sent back to the
client.
1) The Java Servlet API
The Java Servlet API is a set of Java classes which define a standard interface between a Web
client and a Web servlet. Client requests are made to the Web server, which then invokes the
servlet to service the request through this interface.
The API is composed of two packages:
javax.servlet
javax.servlet.http
The Servlet interface class is the central abstraction of the Java
Servlet API. This class defines the methods which servlets must implement, including a service
() method for the handling of requests. The Generic Servlet class implements this interface, and
defines a generic, protocol-independent servlet.
To write an HTTP servlet for use on the Web, we will use an even
More specialized class of Generic Servlet called HttpServlet.HttpServlet provides additional
methods for the processing of HTTP requests such as GET (do Get method) and POST (do Post
method). Although our servlets may implement a service method, in most cases we will
implement the HTTP specific request handling methods of do get and do Post.
2) Servlet Life Cycle
The life cycle of a servlet can be categorized into four parts:
Loading and Instantiation- The servlet container loads the servlet during startup or when
the first request is made. The loading of the servlet depends on the attribute <load-onstartup> of
27. 19
Web.xml file. If the attribute <load-on-startup> has a positive value then the servlet is load with
loading of the container otherwise it load when the first request comes for service. After loading
of the servlet, the container creates the instances of the servlet
Figure 9.1 Lifecycle of Servlet
.
Initialization- After creating the instances, the servlet container calls the init () method and
passes the servlet initialization parameters to the init () method. The init() must be called by the
servlet container before the servlet can service any request. The initialization parameters persist
until the servlet is destroyed. The init() method is called only once throughout the life cycle of
the servlet. The servlet will be available for service if it is loaded successfully otherwise the
servlet container unloads the servlet.
Servicing the Request: After successfully completing the initialization process, the servlet
will be available for service. Servlet creates separate threads for each request. The servlet
container calls the service () method for servicing any request. The service () method determines
the kind of request and calls the appropriate method (doGet () or doPost ()) for handling the
request and sends response to the client using the methods of the response object.
Destroying the Servlet- If the servlet is no longer needed for servicing any request, the
servlet container calls the destroy () method. Like the init() method this method is also called
only once throughout the life cycle of the servlet. Calling the destroy() method indicates to the
servlet container not to sent the any request for service and the servlet releases all the resources
associated with it. Java Virtual Machine claims for the memory associated with the resources for garbage
collection
28. 20
CHAPTER – 10
APPLET
Work An applet is a Java program that runs in a Web browser. An applet can be a fully
functional Java application because it has the entire Java API at its disposal.
There are some important differences between an applet and a standalone Java application,
including the following −
An applet is a Java class that extends the java.applet.Applet class.
A main() method is not invoked on an applet, and an applet class will not define main().
Applets are designed to be embedded within an HTML page.
When a user views an HTML page that contains an applet, the code for the applet is downloaded
to the user's machine.
A JVM is required to view an applet. The JVM can be either a plug-in of the Web browser or a
separate runtime environment.
The JVM on the user's machine creates an instance of the applet class and invokes various
methods during the applet's lifetime.
Applets have strict security rules that are enforced by the Web browser. The security of an applet
is often referred to as sandbox security, comparing the applet to a child playing in a sandbox with
various rules that must be followed.
Other classes that the applet needs can be downloaded in a single Java Archive (JAR) file.
Life Cycle of an Applet
Four methods in the Applet class give you the framework on which you build any serious applet.
1) init − This method is intended for whatever initialization is need for your applet. It is called
after the param tags inside the applet tag have been processed.
2) start − This method is automatically called after the browser calls the init method. It is also
called whenever the user returns to the page containing the applet after having gone off to other
pages.
3) stop − This method is automatically called when the user moves off the page on which the
applet sits. It can, therefore, be called repeatedly in the same applet.
4) destroy − This method is only called when the browser shuts down normally. Because
applets are meant to live on an HTML page, you should not normally leave resources behind
after a user leaves the page that contains the applet.
29. 21
5) paint − Invoked immediately after the start() method, and also any time the applet needs to
repaint itself in the browser. The paint()
method is actually inherited from the java.awt.
A "Hello, World" Applet
Following is a simple applet named HelloWorldApplet.java – Example-
import java.applet.*;
import java.awt.*;
public class HelloWorldApplet extends Applet { public void paint (Graphics g) { g.drawString
("Hello World", 25, 50);
}
}
Created a Text Editor Interface Application using the Java Applet.
This allows greater flexibility than HTML in terms of the layout and functionality.
Having the knowledge of Java, HTML, XML, XSL, and UML proved to be immensely useful.
This had also built up the student’s confidence in dealing with feature-rich, user-friendly
Windows application
30. 22
CHAPTER – 11
Project
My project is belongs to the internet banking in which user can access their bank account
information and some transaction.
“Internet banking” refers to systems that enable bank customers to access accounts and general
information on bank products and services through a personal computer (PC) or other intelligent
device.
This project aims at creation of a secure Internet banking system. This will be accessible to all
customers who have a valid User Id and Password. This is an approach to provide an opportunity
to the customers to have some important transactions to be done from where they are at present
without moving to bank. In this project we are going to deal the existing facts in the bank i.e.; the
transactions which takes place between customer and bank. We provide a real time environment
for the existing system in the bank. We deal in the method transaction in the bank can be made
faster and easier that is our project is an internet based computerized approach towards banking
The Project SAFE AND SECURE INTERNET BANKING SYSTEM provides comprehensive
electronic fund transfer and payment solutions that enable thousands of Citizens, Financial
Institutions and hundreds of businesses the convenience of receiving and transferring their funds
online.
It's fast, easy and puts you in complete control – you decide who to transfer funds, checking of
the account details. Receive and pay all your paper bills at one site – at your bank, credit union.
Functions of Internet Banking:
Fig11.1 Data flow diagram of internet banking
31. 23
Registrationofa user:-
To become a valid user all the user have to register on the system so they have their individual
identity in the system. So every user have different entity.
Fig 11.2. registration page
Login to Account:-
A login, logging in or logging on is the entering of identifier information into a system by a user
in order to access that system (e.g., a computer or a website). It is an integral part of computer
security procedures.
]To access all the banking rights user have to logged in the system so that he/she can use all the
right provided by the bank.
Fig.11.3 Login page
32. 24
Transfermoney:-
Transfer money is a function in which we can send funds to another bank by just providing the
account no if another user.
Fig.11.4 transfer money web page
33. 25
CONCLUSION
This training focused upon increasing our knowledge and interest in toward the java. Because
java is most interesting and most used language in these days. We learnt how to create a web
sites and web pages. It was a great experience. It increases our practical skills that are the main
which we learnt in the training session.
The Advance Java problem set, a step-by-step approach used by the student, has ensured that the
student acquired enough knowledge required in various aspects for all the stages, before
proceeding on. During the 5 months attachment in Hewlett-Packard Lab, the student had done
the following:
Designed a business model (represented in XML) that enabled information in the form of XML
documents to be shared between businesses.
Implemented a GUI that allowed a user to view and modify the information in an XML
document. XSL was used to transform XML into HTML for display in a browser.
Wrote a Java Servlet code to handle the file access application required by the web client. These
are application that cannot be handled by a Java Applet.
Implemented the Text Editor Interface (client) using HTML, a straightforward language used to
display certain interface program onto a web browser.
Designed a class diagram using the Unified Modeling Language (UML) that defines the classes
and their behavior.
The application demonstrate the way to develop an online banking system by using interactive
web client by using JSP, Servlet with more secure way to access &encapsulate database by EJB
component. This means the application server easily deployable and accessible.