Java Project-Compressed
Java Project-Compressed
ON
1
BONAFIDE CERTIFICATE
Signature Signature
Mr.V.J.GNANESWARAN.,B.E., Miss.A.VIGNESWARI.,BTECH.,
2
ACKNOWLEDGEMENT
3
Contents
What is java ....................................................................................... 5
Important Points Of Java .....................................................................17
Histroy ..............................................................................................19
Implementations ................................................................................34
Features of Java .................................................................................36
Advantages of Java: ...........................................................................43
Disadvantages of Java: .......................................................................44
Title..................................................................................................45
Abstract ............................................................................................46
Introduction.......................................................................................48
Methodology ......................................................................................50
Purpose.............................................................................................51
History of ATMs ..................................................................................53
Scope ...............................................................................................54
Advantages .......................................................................................56
Disadvantages ...................................................................................58
Existing System .................................................................................60
Proposed System................................................................................60
Project Description..............................................................................61
Requirements ....................................................................................63
Use Case Diagram ..............................................................................64
Activity Diagram .................................................................................65
State Chart Diagram ...........................................................................67
MySql SetUp ......................................................................................68
Coding ..............................................................................................69
Output ..............................................................................................92
Conclusion ....................................................................................... 102
Reference ........................................................................................ 103
4
What is java
Java is a class-based, object-oriented programming
language that is designed to have as few
implementation dependencies as possible. It is
intended to let application developers write once,
and run anywhere (WORA), meaning that compiled
Java code can run on all platforms that support
Java without the need for recompilation. Java was
first released in 1995 and is widely used for
developing applications for desktop, web, and
mobile devices. Java is known for its simplicity,
robustness, and security features, making it a
popular choice for enterprise-level applications.
5
byte code that can run on any Java Virtual Machine.
The syntax of Java is similar to c/c++.
6
On May 8, 2007, Sun finished the process, making
all of its JVM’s core code available under open-
source distribution terms.
7
class Test
{
public static void main(String []args)
{
System.out.println(“My First
Java Program.”);
}
};
8
Jolt, revolutionary, DNA, dynamic, etc. These all
names were easy to spell and fun to say, but they
all wanted the name to reflect the essence of
technology. In accordance with James Gosling, Java
the among the top names along with Silk, and since
java was a unique name so most of them preferred
it.
Java Terminology
Before learning Java, one must be familiar with
these common terms of Java.
9
program as input and generates bytecode as
output.
In the Running phase of a program, JVM executes
the bytecode generated by the compiler.
Now, we understood that the function of Java
Virtual Machine is to execute the bytecode
produced by the compiler. Every Operating System
has a different JVM but the output they produce
after the execution of bytecode is the same across
all the operating systems. This is why Java is
known as a platform-independent language.
10
4. Java Runtime Environment (JRE): JDK includes
JRE. JRE installation on our computers allows the
java program to run, however, we cannot compile
it. JRE includes a browser, JVM, applet support, and
plugins. For running the java program, a computer
needs JRE.
11
can run on any platform be it Windows, Linux, or
macOS which means if we compile a program on
Windows, then we can run it on Linux and vice
versa. Each operating system has a different JVM,
but the output produced by all the OS is the same
after the execution of the bytecode. That is why we
call java a platform-independent language.
Abstraction
Encapsulation
Inheritance
Polymorphism
3. Simple: Java is one of the simple languages as it
does not have complex features like pointers,
operator overloading, multiple inheritances, and
Explicit memory allocation.
12
possible, that is why the java compiler is able to
detect even those errors that are not easy to detect
by another programming language. The main
features of java that make it robust are garbage
collection, Exception Handling, and memory
allocation.
13
of two or more parts of a program for maximum
utilization of the CPU.
14
verifier also provides additional security as its role
is to check the code for any violation of access.
15
void : It is the return type, meaning this function
will not return anything.
main : main() method is the most important
method in a Java program. This is the method
which is executed, hence all the logic must be
inside the main() method. If a java class is not
having a main() method, it causes compilation
error.
String[] args : This is used to signify that the user
may opt to enter parameters to the Java Program
at command line. We can use both String[] args or
String args[]. Java compiler would accept both
forms.
System.out.println : This is used to print anything
on the console like “printf” in C language.
16
Important Points Of Java
17
• Java has a robust exception-handling
mechanism that makes it easier to handle
errors and unexpected behavior in code.
• Java supports multithreading, which makes it
possible to write programs that can perform
multiple tasks simultaneously.
18
Histroy
Later the project went by the name Green and was finally
renamed Java, from Java coffee, a type of coffee from
Indonesia.[24] Gosling designed Java with a C/C++-style
syntax that system and application programmers would
find familiar.[25]
19
specification.[27] With the advent of Java 2 (released
initially as J2SE 1.2 in December 1998 – 1999), new
versions had multiple configurations built for different
types of platforms.
20
On November 13, 2006, Sun released much of its Java
virtual machine (JVM) as free and open-source software
(FOSS), under the terms of the GPL-2.0-only license.
21
Oracle (and others) highly recommend uninstalling
outdated and unsupported versions of Java, due to
unresolved security issues in older versions.[38]
Principles
There were five primary goals in the creation of the Java
language:[18]
22
Sun has defined and supports four editions of Java
targeting different application environments and
segmented many of its APIs so that they belong to one of
the platforms. The platforms are:
Execution system
Java JVM and bytecode
Main articles: Java (software platform) and Java virtual
machine
One design goal of Java is portability, which means that
programs written for the Java platform must run similarly
23
on any combination of hardware and operating system
with adequate run time support. This is achieved by
compiling the Java language code to an intermediate
representation called Java bytecode, instead of directly to
architecture-specific machine code.
24
compilation.[47] Java itself is platform-independent and is
adapted to the particular platform it is to run on by a Java
virtual machine (JVM), which translates the Java bytecode
into the platform's machine language.[48]
Performance
Main article: Java performance
Programs written in Java have a reputation for being
slower and requiring more memory than those written in
C++.[49][50] However, Java programs' execution speed
improved significantly with the introduction of just-in-
time compilation in 1997/1998 for Java 1.1,[51] the
addition of language features supporting better code
analysis (such as inner classes, the StringBuilder class,
optional assertions, etc.), and optimizations in the Java
virtual machine, such as HotSpot becoming Sun's default
JVM in 2000.
25
Non-JVM
Some platforms offer direct hardware support for Java;
there are micro controllers that can run Java bytecode in
hardware instead of a software Java virtual machine,[52]
and some ARM-based processors could have hardware
support for executing Java bytecode through their Jazelle
option, though support has mostly been dropped in
current implementations of ARM.
26
the burden of having to perform manual memory
management.
In some languages, memory for the creation of objects is
implicitly allocated on the stack or explicitly allocated and
deallocated from the heap.
In the latter case, the responsibility of managing memory
resides with the programmer. If the program does not
deallocate an object, a memory leak occurs.[53] If the
program attempts to access or deallocate memory that has
already been deallocated, the result is undefined and
difficult to predict, and the program is likely to become
unstable or crash.
This can be partially remedied by the use of smart
pointers, but these add overhead and complexity. Note
that garbage collection does not prevent logical memory
leaks, i.e. those where the memory is still referenced but
never used.[53]
27
garbage collector to relocate referenced objects and
ensures type safety and security.
Syntax
Main article: Java syntax
28
Dependency graph of the Java Core classes (created with
jdeps and Gephi)
The syntax of Java is largely influenced by C++ and C.
Unlike C++, which combines the syntax for structured,
generic, and object-oriented programming, Java was built
almost exclusively as an object-oriented language.[18] All
code is written inside classes, and every data item is an
object, with the exception of the primitive data types, (i.e.
integers, floating-point numbers, boolean values, and
characters), which are not objects for performance
reasons. Java reuses some popular aspects of C++ (such as
the printf method).
29
environments (IDEs) such as Eclipse to allow developers
to access documentation within the IDE.
30
A class that is not declared public may be stored in any
.java file. The compiler will generate a class file for each
class defined in the source file. The name of the class file is
the name of the class, with .class appended. For class file
generation, anonymous classes are treated as if their name
were the concatenation of the name of their enclosing
class, a $, and an integer.
31
instance methods and require a specific instance of a class
to operate.
32
The Java launcher launches Java by loading a given class
(specified on the command line or as an attribute in a JAR)
and starting its public static void main(String[]) method.
Stand-alone programs must declare this method explicitly.
The String[] args parameter is an array of String objects
containing any arguments passed to the class. The
parameters to main are often passed by means of a
command line.
33
Implementations
34
GPL. As of Java SE 7, OpenJDK is the official Java reference
implementation.
35
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.
2) Object Oriented
In java, everything is an object which has some data and
behaviour. Java can be easily extended as it is based on
Object Model. Following are some basic concept of OOP's.
36
Object
Class
Inheritance
Polymorphism
Abstraction
Encapsulation
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.
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.
37
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 bytecodes, which have nothing to do
with a particular computer architecture, hence a Java
program is easy to intrepret 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
38
9) High Performance
Java is an interpreted language, so it will never be as fast
as a compiled language like C or C++. But, Java enables
high performance with the use of just-in-time compiler.
10) Distributed
Java is also a distributed language. Programs can be
designed to run on computer networks. Java has a special
class library for communicating using TCP/IP protocols.
Creating network connections is very much easy in Java as
compared to C/C++.
39
New Features of JAVA 11
Java 11 is a recommended LTS version of Java that
includes various important features. These features
includes new and upgrades in existing topic. Just go
through them quickly, we will explore them in details
later.
Java Editions
Java Editions or we can say the platform is a collection of
programs which helps to develop and run the programs
that are written in Java Programming language. Java
Editions includes execution engine, compiler and set of
libraries. As Java is Platform independent language so it is
not specific to any processor or operating system.
40
1. Java Standard Edition
Java Standard edition is a computing platform which is
used for development and deployment of portable code
that is used in desktop and server environments. Java
Standard Edition is also known as Java 2 Platform,
Standard Edition (J2SE).
41
computing and web services. The applications of Java
Enterprise Edition run on reference runtimes. This
reference runtime handle transactions, security,
scalability, concurrency and the management of
components to be deployed. Java Enterprise Edition is also
known as Java 2 Platform Enterprise Edition (J2EE), and
currently, it has been rebranded as Jakarta EE.
4. JavaFX
JavaFX is used for creating desktop applications and also
rich internet applications(RIAs) which can be run on a
wide variety of devices. JavaFX has almost replaced Swing
as the standard GUI library for Java Standard Edition.
JavaFX support for desktop computers and web browsers.
42
Advantages of Java:
43
Disadvantages of Java:
44
Title
Language Java
used:
Database: MySql
45
Abstract
The ATM System is the project which is used to
access their bank accounts in order to make cash
withdrawals. Whenever the user need to make
cash withdraws, they can enter their PIN number
(personal identification number) and it will display
the amount to be withdrawn in the form of 100’s
500’s and 1000’s. Once their withdrawn was
successful, the amount will be debited in their
account.
46
communicate each transaction to the database and
obtain verification that it was allowed by the
database. In the case of a cash withdrawal, a
second message will be sent after the transaction
has been physically completed (cash dispensed or
envelope accepted). If the database determines
that the customer’s PIN is invalid, the customer
will be required to re-enter the PIN before a
transaction can proceed.
47
Introduction
1.verification process
2.language, service
3.account selection services
4.Transactions
5.Special services
48
The program is designed in such a way that the
user has to card and pin number. Once verified, he
is provided a menu and he/she had to enter the
option provided in the menu. For example, when
the user wants to view the list of payment history
than he/she had to enter the option for payment
history provided in the main menu. When the
option is entered alone with the respective
argument, then the payment history is displayed
on the screen.
49
Methodology
This study adopts survey research. It probes
deeply in to the opinion of respondents regarding
their satisfaction with automated teller machine
services. The study carefully selects samples from
the population in order to have an intensive study
of the characteristics of the population. However,
the research focuses on users of United Bank for
Africa in Sokoto metropolis. The rationale for the
selection of the states is that they constitute a
relatively a new area where much empirical
research has not been conducted. Most of related
researches concentrated on other zones and
countries. The study has one Independent
Variable(satisfaction) four dependant variable
perceived ease of use, availability of money in the
booth, transaction cost and service security. Data
will be collected on user satisfaction through the
use of questionnaire
50
Purpose
An automated teller machine (ATM) is an
electronic banking outlet that allows customers to
complete basic transactions without the aid of a
branch representative or teller. Anyone with a
credit card or debit card can access cash at most
ATMs, either in the U.S. or other countries.
KEY TAKEAWAYS:
ATMS, or automated teller machines, are banking
outlets where you can withdraw cash without
going into a branch of their bank.
51
Some ATMs only dispense cash, while others allow
transactions such as check deposits or balance
transfers.
52
History of ATMs
• The first ATM appeared at a branch of Barclays Bank
in London in 1967, though there are reports of a cash
dispenser in use in Japan in the mid-1960s.
53
Scope
As per RBI, for ATM industry, India is a huge
market. It is a place with 1.2 billion people, where
40% of them were unbanked.
54
The ATM technology has developed to such an
extent that some ATMs can memorize consumer
preferences as per their past transactions,
behavior, and tailor services accordingly.
55
Advantages
3.Fast Transaction
Best thing about ATMs is the fastest way of
transaction between account holders and
machines. No need to wait outside the bank or
inside the bank.
56
6.Privacy in Transaction
This is the privacy of your account and privacy
from other peoples. Using an ATM only you know
the actual amount of your bank statement. Because
there is nobody inside with you in the cabin.
7.ATM is Convenience
In this age of modern technology, internet banking
ATMs are available in all the convenience places
such as, Air Ports, Railway Stations, Bus Stops and
many more places like that.
57
Disadvantages
58
Another cons of automated teller machines in the list of
disadvantages of ATM. is the frauds and hacking. You must
6.keep your card number and pin code secret and never
tell anybody. There are a lot of cases on the internet
hackers and frauds using your card data.
10.Risk of Robbery
Using the automated teller machine at night time you must
be carefully. Because there is no police and other security
staff at that time to protect you. Thieves can rob you and
take your money.
59
Existing System
Proposed System
60
Project Description
Need for the software
Now a days every one very busy in their work. So they feel
that the job must be easier so the system is used to reduce
their work which is done in the ATM system. Instead of
keeping lots of paper into a record or file and it may be
missed somewhere so, this system help to keep the record
of the customer it also keeps the details of he customer. It
is also easy to access.
Problem Description
The system mainly used by the bank clients. When a client
comes to ATM centre to update and delete their account. It
reduces the time consumption and lot of paperwork.
For any single operation it involves numerous references
and updating also takes subsequent changes in other
places.
ATM is another type of banking where the most frequently
type of transaction made is withdrawal.
A user may withdraw as much as many amount as he
wants until his account holds a sum greater than his
withdrawal amount.
ATM is completely automated and there is no necessity of
the ATM centre being placed at the bank itself.
It can be placed in the shopping malls, airports, railway
stations etc.
61
This ATM system can use any kind of interface. But it
should be user friendly and not confusing.
Help manuals should be provided in case any customer
has problem working with the software.
The system will retain information on the entire customer
who has necessity rights to access the service.
It will contain the balance amount in the account, rate of
interest, any special allowance for that customer and most
of all pin number of the customer.
The ATM system should be compatible with any kind of
database such as MS-ACCESS, DB2, ORACLE, SQL, SERVER
etc. the emphasis here is on consistency.
Some customer could have availed some special offers on
his ATM cards.
So this must be taken care of and the appropriate data
should be dealt with.
The ATM should provide easy access to the data for the
customer.
It should also have a highly secure interface so that one
can take money one behalf of others.
So the security is one of the main aspects in ATM.
62
Requirements
• Software
1.Front End Tool: Java
2.Database:MySql
• HardWare
63
Use Case Diagram
64
Activity Diagram
65
Sequence Diagram
66
State Chart Diagram
67
MySql SetUp
68
Coding
1.Main Module
2.Login Module
69
Output:
70
3.Pin Checking Module
71
Output:
72
4.Admin Home Page
73
Output:
74
75
Output:
76
6.Database Management Module
77
78
7.Comman Frame And Logo
8.Success Page
79
output:
80
There is also
another method
executed in this
class if adding users
is done.
81
output:
82
83
output:
84
85
Output:
86
12.Other Operations
87
88
Output:
89
13.Bank Statements
90
Output:
91
Output
The User Module:
92
93
94
95
96
97
98
99
The Admin Module:
100
101
Conclusion
102
Reference
• https://copyassignment.com/atm-
management-system-project-in-java/
• https://en.wikipedia.org/wiki/Java_%28prog
ramming_language%29
• https://www.javatpoint.com/advantages-
and-disadvantages-of-java
• https://www.aplustopper.com/advantages-
and-disadvantages-of-atm/
• https://www.researchgate.net/publication/2
64787167_Scope_of_ATM_Industry_in_IndiaTa
rget_Audience_ATM_UsersResearchers_in_Ban
king_Area_and_Suppliers_of_ATMs
• https://www.studocu.com/in/support
103