project developed on Banking with concepts of core Java and MySQL also how to use Java JDBC to connect to MySQL and perform SQL queries, database inserts and deletes.
2. OUTLINE
Summer Training at Vivacity InfoTech, Jaipur from
2nd June, 2017 to 1st July, 2017.
An amazing experience as I got to learn , concepts
of core Java and MySQL also how to use Java JDBC
to connect to MySQL and perform SQL queries, database
inserts and deletes.
3. Introduction to Java
James Gosling initiated Java language project in June 1991 for
use in one of his many set-top box projects. The language,
initially called ‘Oak’ after an oak tree that stood outside
Gosling's office, also went by the name ‘Green’ and ended up
later being renamed as Java, from a list of random words.
Sun released the first public implementation as Java 1.0 in
1995. It promised Write Once, Run Anywhere (WORA),
providing no-cost run-times on popular platforms.
On 13 November, 2006, Sun released much of Java as free
and open source software under the terms of the GNU
General Public License (GPL).
On 8 May, 2007, Sun finished the process, making all of
Java's core code free and open-source, aside from a small
portion of code to which Sun did not hold the copyright.
4. Tools you will need
For performing the examples discussed in this
tutorial, you will need a Pentium 200-MHz computer
with a minimum of 64 MB of RAM (128 MB of RAM
recommended).
You will also need the following software's −
Linux 7.1 or Windows xp/7/8 operating system
Java JDK 8
Microsoft Notepad or any other text editor
5. Features of Java
1) Simple
Java is easy to learn and its syntax is
quite simple, clean and easy to
understand. The confusing and
ambiguous concepts of C++ are either
left out in Java or they have been re-
implemented in a cleaner way.
Eg : Pointers and Operator Overloading
are not there in java but were an
important part of C++.
2) Object Oriented
In java everything is Object which has
some data and behavior. Java can be
easily extended as it is based on Object
Model.
3) Robust
Java makes an effort to eliminate error
prone codes by emphasizing mainly on
compile time error checking and runtime
checking. But the main areas which Java
improved were Memory Management
and mishandled Exceptions by
introducing automatic Garbage
Collector and Exception Handling.
6. 4) Platform Independent
Unlike other programming languages such as C, C++ etc which are compiled into platform
specific machines. Java is guaranteed to be write-once, run-anywhere language.
On compilation Java program is compiled into byte code. This byte code is platform
independent and can be run on any machine, plus this byte code format also provide
security. Any machine with Java Runtime Environment can run Java Programs.
5) Secure
When it comes to security, Java is always the first choice. With java secure features it
enable us to develop virus free, temper free system. Java program always runs in Java
runtime environment with almost null interaction with system OS, hence it is more secure.
6) Multi Threading
Java multithreading feature makes it possible to write program that can do many tasks
simultaneously. Benefit of multithreading is that it utilizes same memory and other
resources to execute multiple threads at the same time, like While typing, grammatical
errors are checked along.
7) Architectural Neutral
Compiler generates byte codes, which have nothing to do with a particular computer
architecture, hence a Java program is easy to interpret on any machine.
8) Portable
Java Byte code can be carried to any platform. No implementation dependent features.
Everything related to storage is predefined, example: size of primitive data types
9) High Performance
Java is an interpreted language, so it will never be as fast as a compiled language like C or
7. Where Java is Used ?
According to the Sun , 3 billion devices run java.
There are many devices where Java is currently used.
Desktop Applications - Acrobat reader, Media
player, Antiviruses etc.
Web Applications - irctc.co.in , javatpoint.com
etc.
Enterprise Application – Banking Application,
Business Application.
Mobile.
Embedded System.
Games.
Robotics.
8. Java Virtual Machine(JVM)
Java virtual machine is the like usual
computer which translate high level
language into machine language.
Just like that Java virtual machine
also translate Byte code into machine
language.
JVM are available for many
hardware and software Platform.
9. ADVANTAGES DISADVANTAGES
Java is simple
language.
Java does not
support POINTERS.
Java is first language
in which programs can
be executed using
web.
Write Once Run
Anywhere (WORA).
Slow Performance.
No support for Low
level programming.
Poor features in
Java.
No control over
Garbage Collection.
10. SQL
SQL is a language to operate
databases; it includes database
creation, deletion, fetching rows,
modifying rows, etc. SQL is
an ANSI (American National
Standards Institute) standard
language, but there are many
different versions of the SQL
language.
11. What is SQL
SQL is Structured Query Language, which is a computer
language for storing, manipulating and retrieving data
stored in a relational database.
SQL is the standard language for Relational Database
System. All the Relational Database Management
Systems (RDMS) like MySQL, MS Access, Oracle,
Sybase, Informix, Postgres and SQL Server use SQL as
their standard database language.
Also, they are using different dialects, such as −
•MS SQL Server using T-SQL,
•Oracle using PL/SQL,
•MS Access version of SQL is called JET SQL (native
format) etc.
12. Why SQL
SQL is widely popular because it offers the following
advantages −
•Allows users to access data in the relational database
management systems.
•Allows users to describe the data.
•Allows users to define the data in a database and manipulate
that data.
•Allows to embed within other languages using SQL modules,
libraries & pre-compilers.
•Allows users to create and drop databases and tables.
•Allows users to create view, stored procedure, functions in a
database.
•Allows users to set permissions on tables, procedures and
14. SQL Commands
The standard SQL commands to interact with relational databases are
CREATE, SELECT, INSERT, UPDATE, DELETE and DROP. These
commands can be classified into the following groups based on their nature
−
DDL - Data Definition Language
Command & Description
1.CREATE
Creates a new table, a view of a table, or other object in the database.
2.ALTER
Modifies an existing database object, such as a table.
3.DROP
Deletes an entire table, a view of a table or other objects in the database.
15. DML - Data Manipulation Language
Command & Description
•SELECT
•Retrieves certain records from one or more tables.
•INSERT
•Creates a record.
•UPDATE
•Modifies records.
•DELETE
•Deletes records.
DCL - Data Control Language
Command & Description
•GRANT
Gives a privilege to user.
•REVOKE
Takes back privileges granted from user.
17. JDBC Pseudo Code
All JDBC programs do the following:
„Step 1) load the JDBC driver
„Step 2) Specify the name and location of the
database being used
„Step 3) Connect to the database with a
Connection object
„Step 4) Execute a SQL query using a Statement
object
„Step 5) Get the results in a ResultSet object
„Step 6) Finish by closing the ResultSet,
Statement and Connection objects
19. PROJECT
DESCRIPTION FOR THIS PROJECT
The Project that I have undertaken aims to develop a
banking system that is clean, user friendly and
multifunctional. Development of this application includes a
number of fields such that users feels comfortable and the
system appears as dynamic to him. The project Banking
System includes the following functionalities.
•Transactions can be done with minimum user events.
•Customers can view their account details and can use
them as necessary.
•All customers data are stored in file on stable storage.
•Account holders have to pass through a login system to
enter their accounts.
25. CONCLUSION
This project is developed to nurture
needs of a user in banking sector
by embedding all the tasks of
transactions taking place in a bank.
Future version of this software will
be much enhanced than the current
version1.0 .