100% found this document useful (5 votes)
4K views35 pages

Introduction of Java Report

The document provides an introduction and overview of the Java programming language. It discusses that Java is an object-oriented, platform-independent language that can be used to create a variety of applications including standalone desktop programs, web applications, enterprise software, and mobile apps. It also summarizes the four main Java platforms, the history and origins of Java, and some of the key features that make Java simple, secure, and robust.

Uploaded by

Mick
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
100% found this document useful (5 votes)
4K views35 pages

Introduction of Java Report

The document provides an introduction and overview of the Java programming language. It discusses that Java is an object-oriented, platform-independent language that can be used to create a variety of applications including standalone desktop programs, web applications, enterprise software, and mobile apps. It also summarizes the four main Java platforms, the history and origins of Java, and some of the key features that make Java simple, secure, and robust.

Uploaded by

Mick
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 35

A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

INTRODUCTION TO JAVA

Java is a programming language and a platform. Java is a high level, robust, secured and
object-oriented programming language.

Platform: Any hardware or software environment in which a program runs, is known as a


platform. Since Java has its own runtime environment (JRE) and API, it is called platform.

Java Example

class Simple {
public static void main(String args[])
{
System.out.println("Hello Java");
}
}

Where it is used: There are many devices where Java is currently used. Some of them are as
follows:
1. Desktop Applications such as acrobat reader, media player, antivirus etc.
2. Web Applications such as irctc.co.in, javatpoint.com etc.
3. Enterprise Applications such as banking applications.
4. Mobile
5. Embedded System
6. Smart Card
7. Robotics
8. Games etc.

Types of Java Applications

There are mainly 4 types of applications that can be created using java programming:

1) Standalone Application

Standalone applications are also known as desktop applications or window-based applications.


These are traditional software that we need to install on every machine. Example of standalone
applications are: Media player, antivirus etc. AWT and Swing are used in java for creating
standalone applications.

2) Web Application

An application that runs on the server side and creates dynamic page, is called web application.
Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF etc. technologies are used for creating
web applications in java.

Univ Roll no.1608481 1


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

3) Enterprise Application

An application that is distributed in nature, such as banking applications etc. is called enterprise
application. It has the advantage of high level security, load balancing and clustering. In
java, EJB is used for creating enterprise applications.

4) Mobile Application

An application that is created for mobile devices. Currently Android and Java ME are used for
creating mobile applications.

Java Platforms / Editions: There are 4 platforms or editions of Java.

1) Java SE (Java Standard Edition)

It is a java programming platform. It includes Java programming APIs such as java.lang,


java.io, java.net, java.util, java.sql, java.math etc. It includes core topics like OOPs, String,
Regex, Exception, Inner classes, Multithreading, I/O Stream, Networking, AWT, Swing,
Reflection, Collection etc.

2) Java EE (Java Enterprise Edition)

It is an enterprise platform which is mainly used to develop web and enterprise applications. It
is built on the top of Java SE platform. It includes topics like Servlet, JSP, Web Services,
EJB, JPA etc.

3) Java ME (Java Micro Edition)

It is a micro platform which is mainly used to develop mobile applications.

4) JavaFx

It is used to develop rich internet applications. It uses light-weight user interface API.

Univ Roll no.1608481 2


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

HISTORY OF JAVA
The history of Java is very interesting. Java was originally designed for interactive television,
but it was too advanced technology for the digital cable television industry at the time. The
history of java starts from Green Team. Java team members (also known as Green Team),
initiated this project to develop a language for digital devices such as set-top boxes, televisions
etc. But, it was suited for internet programming. Later, Java technology was incorporated by
Netscape.

The principles for creating Java programming were "Simple, Robust, Portable, Platform-
independent, Secured, High Performance, Multithreaded, Architecture Neutral, Object-
Oriented, Interpreted and Dynamic".

Currently, Java is used in internet programming, mobile devices, games, e-business solutions
etc.

There are given the major points that describes the history of java :

1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project
in June 1991. The small team of sun engineers called Green Team.

2) Originally designed for small, embedded systems in electronic appliances like set-top boxes.

3) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt.

4) After that, it was called Oak and was developed as a part of the Green project.

Why Java named as "Oak": Oak is a symbol of strength and chosen as a national tree of
many countries like U.S.A., France, Germany, Romania etc. In 1995, Oak was renamed
as "Java" because it was already a trademark by Oak Technologies.

Why Java Programming named as "Java": The team gathered to choose a new name. The
suggested words were "dynamic", "revolutionary", "Silk", "jolt", "DNA" etc. They wanted
something that reflected the essence of the technology: revolutionary, dynamic, lively, cool,
unique, and easy to spell and fun to say. According to James Gosling "Java was one of the top
choices along with Silk". Since java was so unique, most of the team members preferred java.
Java is an island of Indonesia where first coffee was produced (called java coffee).

Univ Roll no.1608481 3


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of


Oracle Corporation) and released in 1995. In 1995, Time magazine called Java one of the
Ten Best Products of 1995. JDK 1.0 released in January 23, 1996.

Java Version History: There are many java versions that has been released. Current stable
release of Java is Java SE 10.

1. JDK Alpha and Beta (1995)


2. JDK 1.0 (23rd Jan, 1996)
3. JDK 1.1 (19th Feb, 1997)
4. J2SE 1.2 (8th Dec, 1998)
5. J2SE 1.3 (8th May, 2000)
6. J2SE 1.4 (6th Feb, 2002)
7. J2SE 5.0 (30th Sep, 2004)
8. Java SE 6 (11th Dec, 2006)
9. Java SE 7 (28th July, 2011)
10. Java SE 8 (18th March, 2014)
11. Java SE 9 (21st Sep, 2017)
12. Java SE 10 (20th March, 2018)

Univ Roll no.1608481 4


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

FEATURES OF JAVA
The main objective of Java programming language creation was to make it portable, simple
and secure programming language. Apart from this, there are also some awesome features
which play important role in the popularity of this language. The features of Java are also
known as java buzzwords.

A list of most important features of Java language are given below.

Simple: Java is very easy to learn and its syntax is simple, clean and easy to understand.
According to Sun, Java language is a simple programming language because:
o Java syntax is based on C++ (so easier for programmers to learn it after C++).
o Java has removed many confusing and rarely-used features e.g. explicit pointers,
operator overloading etc.
o There is no need to remove unreferenced objects because there is Automatic Garbage
Collection in java.

Object-oriented: Java is object-oriented programming language. Everything in Java is an


object. Object-oriented means we organize our software as a combination of different types of
objects that incorporates both data and behaviour. Object-oriented programming (OOPs) is a
methodology that simplifies software development and maintenance by providing some rules.

Univ Roll no.1608481 5


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Basic concepts of OOPs are: Object, Class, Inheritance, Polymorphism, Abstraction,


Encapsulation.

Platform Independent:

Java is platform independent because it is different from other languages like C, C++ etc.
which are compiled into platform specific machines while Java is a write once, run anywhere
language. A platform is the hardware or software environment in which a program runs.

Java code can be run on multiple platforms e.g. Windows, Linux, Sun Solaris, Mac/OS etc.
Java code is compiled by the compiler and converted into bytecode. This bytecode is a
platform-independent code because it can be run on multiple platforms i.e. Write Once and
Run Anywhere(WORA).

Secured: Java is best known for its security. With Java, we can develop virus-free systems.
Java is secured because:

o No explicit pointer
o Java Programs run inside virtual machine sandbox

o Classloader: Classloader in Java is a part of the Java Runtime Environment(JRE)


which is used to dynamically load Java classes into the Java Virtual Machine. It adds

Univ Roll no.1608481 6


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

security by separating the package for the classes of the local file system from those
that are imported from network sources.
o Bytecode Verifier: It checks the code fragments for illegal code that can violate access
right to objects.
o Security Manager: It determines what resources a class can access such as reading and
writing to the local disk.

These securities are provided by java language. Some security can also be provided by
application developer through SSL, JAAS, Cryptography etc.

Robust: Robust simply means strong. Java is robust because:


o It uses strong memory management.
o There is lack of pointers that avoids security problems.
o There is automatic garbage collection in java which runs on the Java Virtual Machine
to get rid of objects which are not being used by a Java application anymore.
o There is exception handling and type checking mechanism in java. All these points
make java robust.

Architecture-neutral: Java is architecture neutral because there is no implementation


dependent features e.g. size of primitive types is fixed. In C programming, int data type
occupies 2 bytes of memory for 32-bit architecture and 4 bytes of memory for 64-bit
architecture. But in java, it occupies 4 bytes of memory for both 32 and 64 bit architectures.

Portable: Java is portable because it facilitates you to carry the java bytecode to any
platform. It doesn't require any type of implementation.

High-performance: Java is faster than other traditional interpreted programming languages


because Java bytecode is "close" to native code. It is still a little bit slower than a compiled
language (e.g. C++). Java is an interpreted language that is why it is slower than compiled
languages e.g. C, C++ etc.

Distributed: Java is distributed because it facilitates users to create distributed applications


in java. RMI and EJB are used for creating distributed applications. This feature of Java
makes us able to access files by calling the methods from any machine on the internet.

Multi-threaded: A thread is like a separate program, executing concurrently. We can write


Java programs that deal with many tasks at once by defining multiple threads. The main
advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a
common memory area. Threads are important for multi-media, Web applications etc.

Dynamic: Java is a dynamic language. It supports dynamic loading of classes. It means


classes are loaded on demand. It also supports functions from its native languages i.e. C and
C++. Java supports dynamic compilation and automatic memory management (garbage
collection).

Univ Roll no.1608481 7


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

C++ VS JAVA
There are many differences and similarities between C++ programming language and Java. A
list of top differences between C++ and Java are given below:

Comparison Index C++ Java


Platform-independent C++ is platform-dependent. Java is platform-independent.
Mainly used for C++ is mainly used for system Java is mainly used for
programming. application programming. It is
widely used in window, web-
based, enterprise and mobile
applications.
Design Goal C++ was designed for systems Java was designed and created
and applications as an interpreter for printing
programming. It was an systems but later extended as a
extension of support network computing.
It was designed with a goal of
C programming language. being easy to use and accessible
to a wider audience.
Goto C++ supports goto statement. Java doesn't support goto
statement.
Multiple inheritance C++ supports multiple Java doesn't support multiple
inheritance. inheritance through class. It can
be achieved by interfaces in
java.
Operator Overloading C++ supports operator Java doesn't support operator
overloading. overloading.
Pointers C++ supports pointers. You Java supports pointer internally.
can write pointer program in But you can't write the
C++. pointer
program in java. It means java
has restricted pointer support
in java.
Compiler and C++ uses compiler only. C++ Java uses compiler and
Interpreter is compiled and run using interpreter both. Java source
compiler which converts code is converted into byte code
source code into machine code at compilation time. The
so, C++ is platform interpreter executes this byte
dependent. code at run time and produces
output. Java is interpreted that is
why it is platform independent.
Call by Value and Call C++ supports both call by Java supports call by value
by reference value and call by reference. only. There is no call by
reference in java.

Univ Roll no.1608481 8


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Structure and Union C++ supports structures and Java doesn't support structures
unions. and unions.
Thread Support C++ doesn't have built-in Java has built-in thread support.
support for threads. It relies on
third-party libraries for thread
support.

Note: Java doesn't support default arguments like C++. Java does not support header files like
C++. Java uses import keyword to include different Classes and methods.

Univ Roll no.1608481 9


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

COMPONENTS OF JAVA

JVM: JVM (Java Virtual Machine) is an abstract machine. It is called virtual machine
because it doesn't physically exist. It is a specification that provides runtime environment in
which java bytecode can be executed. It can also run those programs which are written in
other languages and compiled to Java bytecode.

JVMs are available for many hardware and software platforms. JVM, JRE and JDK are
platform dependent because configuration of each OS are different from each other. But, Java
is platform independent. There are three notions of the JVM: specification, implementation,
and instance.

The JVM performs following main tasks:

o Loads code
o Verifies code
o Executes code
o Provides runtime environment

JRE: JRE is an acronym for Java Runtime Environment. It is also written as Java RTE. The
Java Runtime Environment is a set of software tools which are used for developing java
applications. It is used to provide runtime environment. It is the implementation of JVM. It
physically exists. It contains set of libraries + other files that JVM uses at runtime.

Implementation of JVMs are also actively released by other companies besides Sun Micro
Systems.

JDK: JDK is an acronym for Java Development Kit. The Java Development Kit (JDK) is a
software development environment which is used to develop java applications and applets. It
physically exists. It contains JRE + development tools. JDK is an implementation of any one
of the below given Java Platforms released by Oracle corporation:

Univ Roll no.1608481 10


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

o Standard Edition Java Platform


o Enterprise Edition Java Platform
o Micro Edition Java Platform

The JDK contains a private Java Virtual Machine (JVM) and a few other resources such as an
interpreter/loader (Java), a compiler (javac), an archiver (jar), a documentation generator
(Javadoc) etc. to complete the development of a Java Application.

Univ Roll no.1608481 11


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

ABOUT JAVA VARIABLES, DATA TYPES AND OPERATORS


A variable is a container which holds the value while the java program is executed. A variable
is assigned with a datatype. Variable is a name of memory location. There are three types of
variables in java: local, instance and static. There are two types of data types in java: primitive
and non-primitive.

Variable: Variable is name of reserved area allocated in memory. In other words, it is a name
of memory location. It is a combination of "vary + able" that means its value can be changed.

int data=10; //Here data is variable

Types of Variable: There are three types of variables in java.

1) Local Variable: A variable declared inside the body of the method is called local variable.
You can use this variable only within that method and the other methods in the class aren't even
aware that the variable exists. A local variable cannot be defined with "static" keyword.

2) Instance Variable: A variable declared inside the class but outside the body of the method,
is called instance variable. It is not declared as static. It is called instance variable because its
value is instance specific and is not shared among instances.

3) Static Variable: A variable which is declared as static is called static variable. It cannot be
local. You can create a single copy of static variable and share among all the instances of the
class. Memory allocation for static variable happens only once when the class is loaded in the
memory.

Univ Roll no.1608481 12


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Example to understand the types of variables in java

class A
{
int data=50;//instance variable
static int m=100;//static variable
void method(){
int n=90;//local variable
}
}//end of class

Data Types in Java


Data types specify the different sizes and values that can be stored in the variable. There are
two types of data types in Java:

1. Primitive data types: The primitive data types include Integer, Character, Boolean,
and Floating Point.
2. Non-primitive data types: The non-primitive data types include Classes, Interfaces,
and Arrays.

Java Primitive Data Types: In Java language, primitive data types are the building blocks of
data manipulation. These are the most basic data types available in Java language. Java is a
statically-typed programming language. It means, all variables must be declared before its use.
That is why we need to declare variable’s type and name.

There are 8 types of primitive data types: boolean data type, byte data type, char data
type,short data type, int data type, long data type, float data type, double data type

Data Type Default Value Default size


Boolean False 1 bit
Char '\u0000' 2 byte
Byte 0 1 byte
Short 0 2 byte
Int 0 4 byte
Long 0L 8 byte
Float 0.0f 4 byte
Double 0.0d 8 byte

Univ Roll no.1608481 13


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Operators in java: Operator in java is a symbol that is used to perform operations. For
example: +, -, *, / etc. There are many types of operators in java which are given below:

Unary Operator, Arithmetic Operator, Shift Operator, Relational Operator, Bitwise


Operator, Logical Operator, Ternary Operator and Assignment Operator.

Java Operator Precedence:

Operator Type Category Precedence


Unary Postfix expr++ expr--
Prefix ++expr --expr
+expr -expr ~ !
Arithmetic Multiplicative */%
Additive +-
Shift Shift << >> >>>
Relational Comparison < > <= >= instanceof
Equality == !=
Bitwise bitwise AND &
bitwise exclusive OR ^
bitwise inclusive OR |
Logical logical AND &&
logical OR ||
Ternary Ternary ?:
Assignment Assignment = += -= *= /= %= &= ^=
|= <<= >>= >> >=

Univ Roll no.1608481 14


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

CONCEPT OF OOPS IN JAVA

Object Oriented Programming is a paradigm that provides many concepts such as


inheritance, data binding, polymorphism etc.

Simula is considered as the first object-oriented programming language. The programming


paradigm where everything is represented as an object, is known as truly object-oriented
programming language.

Smalltalk is considered as the first truly object-oriented programming language.

The popular object-oriented languages are Java, C#, PHP, Python, C++ etc.

The main aim of object oriented programming is to implement real world entities i.e. object,
classes, abstraction, inheritance, polymorphism etc.

OOPs (Object Oriented Programming System)

Object means a real word entity such as pen, chair, table etc. Object-Oriented
Programming is a methodology or paradigm to design
a program using classes and objects. It simplifies the
software development and maintenance by providing
some concepts:
o Object
o Class
o Inheritance
o Polymorphism
o Abstraction
o Encapsulation

Object: Any entity that has state and behaviour is known as an object. For example: chair, pen,
table, keyboard, bike etc. It can be physical and logical.

Object can be defined as an instance of a class. An object contains an address and takes up
some space in memory. Objects can communicate without knowing details of each other's data
or code, the only necessary thing is that the type of message accepted and type of response
returned by the objects.

Example: A dog is an object because it has states i.e. colour, name, breed etc. as well as
behaviours i.e. wagging the tail, barking, eating etc.

Class: Collection of objects is called class. It is a logical entity. A class can also be defined as
a blueprint from which you can create an individual object. Class doesn’t store any space.

Univ Roll no.1608481 15


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Inheritance: When one object acquires all the properties


and behaviours of parent object, it is known as inheritance.
It provides code reusability. It is used to achieve runtime
polymorphism.

Polymorphism: When one task is performed by different


ways i.e. known as polymorphism. For example: to
convince the customer differently, to draw something e.g.
shape or rectangle etc. In java, we use method overloading
and method overriding to achieve polymorphism.

Another example can be to speak something e.g. cat speaks meow, dog barks woof etc.

Abstraction: Hiding internal details and showing functionality is known as abstraction. For
example: phone call, we don't know the internal processing.

In java, we use abstract class and interface to achieve abstraction.

Encapsulation: Binding (or wrapping) code and data together into a single unit is known as
encapsulation. For example: capsule, it is wrapped with different medicines. A java class is the
example of encapsulation. Java bean is the fully encapsulated class because all the data
members are private here.

Univ Roll no.1608481 16


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

CONSTRUCTOR IN JAVA

In Java, constructor is a block of codes similar to method. It is called when an instance of


object is created and memory is allocated for the object. It is a special type of method
which is used to initialize the object.

When a constructor is called

Every time an object is created using new () keyword, at least one constructor is called. It
is called a default constructor. It is called constructor because it constructs the values at
the time of object creation. It is not necessary to write a constructor for a class. It is
because java compiler creates a default constructor if your class doesn't have any.

Rules for creating java constructor: There are basically two rules defined for the
constructor.

1. Constructor name must be same as its class name


2. Constructor must have no explicit return type

Types of java constructors: There are two types of constructors in java:

1. Default constructor (no-arg constructor)


2. Parameterized constructor

Constructor Overloading in Java: In Java, a constructor is just like a method but


without return type. It can also be overloaded like Java methods. Constructor overloading in
Java is a technique of having more than one constructor with different parameter lists. They
are arranged in a way that each constructor performs a different task. They are differentiated
by the compiler by the number of parameters in the list and their types.

Difference between constructor and method in java: There are many differences
between constructors and methods. These are:

Univ Roll no.1608481 17


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Java Constructor Java Method


Constructor is used to initialize the state of Method is used to expose behaviour of an
an object. object.
Constructor must not have return type. Method must have return type.
Constructor is invoked implicitly. Method is invoked explicitly.
The java compiler provides a default Method is not provided by compiler in any
constructor if you don't have any constructor. case.
Constructor name must be same as the class Method name may or may not be same as
name. class name.

Java Copy Constructor: There is no copy constructor in java. But, we can copy the values
of one object to another like copy constructor in C++. There are many ways to copy the
values of one object into another in java. They are:

o By constructor
o By assigning the values of one object into another
o By clone () method of Object class

Does Constructor return any value: yes, that is current class instance (You cannot
use return type yet it returns a value).

Univ Roll no.1608481 18


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

JAVA STRING
In java, string is basically an object that represents sequence of char values. An array of
characters works same as java string. For example:

1. char[] ch={'j','a','v','a','t','p','o','i','n','t'};
2. String s=new String(ch);

Java String class provides a lot of methods to perform operations on string such as compare(),
concat(), equals(), split(), length(), replace(), compareTo(), intern(), substring() etc.

The java.lang.String class implements Serializable, Comparable and CharSequence interfaces.

CharSequence Interface: The CharSequence interface is used to represent sequence of


characters. It is implemented by String, StringBuffer and StringBuilder classes. It means, we
can create string in java by using these 3 classes.

The java String is immutable i.e. it cannot be changed. Whenever we change any string, a new
instance is created. For mutable string, you can use StringBuffer and StringBuilder classes.

Create String object: There are two ways to create String object:
1. By string literal
2. By new keyword

1) String Literal: Java String literal is created by using double quotes. For Example:
String s="welcome";
Each time you create a string literal, the JVM checks the string constant pool first. If
the string already exists in the pool, a reference to the pooled instance is returned. If

Univ Roll no.1608481 19


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

string doesn't exist in the pool, a new string instance is created and placed in the pool.
For example:
String s1="Welcome";
String s2="Welcome";//will not create new instance

In the above example, only one object will be created. Firstly, JVM will not find any string
object with the value "Welcome" in string constant pool, so it will create a new object. After
that it will find the string with the value "Welcome" in the pool, it will not create new object
but will return the reference to the same instance. String objects are stored in a special memory
area known as string constant pool.

We use concept of string literal in java: To make Java more memory efficient (because no
new objects are created if it exists already in string constant pool).

2) By new keyword
String s=new String("Welcome"); //creates two objects and one reference variable

In such case, JVM will create a new string object in normal (non pool) heap memory and the
literal "Welcome" will be placed in the string constant pool. The variable s will refer to the
object in heap (non pool).

Java StringBuffer class: Java StringBuffer class is used to create mutable (modifiable)
string. The StringBuffer class in java is same as String class except it is mutable i.e. it can be
changed.

Java StringBuilder class: Java StringBuilder class is used to create mutable (modifiable)
string. The Java StringBuilder class is same as StringBuffer class except that it is non-
synchronized. It is available since JDK 1.5.

Methods of both StringBuffer and StringBuilder are append(), insert(), replace(), delete(),
reverse(), capacity(), length(), charAt(int index) etc.

Univ Roll no.1608481 20


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

SPECIFICATIONS OF JAVA

Package
A package is a collection of similar types of classes, interfaces and sub-packages. Purpose of
package The purpose of package concept is to provide common classes and interfaces for any
program separately. In other words if we want to develop any class or interface which is
common for most of the java programs than such common classes and interfaces must be
place in a package.

Exception Handling

The process of converting system error messages into user friendly error message is known
as Exception handling. This is one of the powerful feature of Java to handle run time error
and maintain normal flow of java application. An Exception is an event, which occurs during
the execution of a program, that disrupts the normal flow of the program's Instructions.

Type of Exception: There are mainly two types of exceptions: checked and unchecked where
error is considered as unchecked exception. The sun microsystem says there are three types of
exceptions:

 Checked Exception
 Un-Checked Exception
 Error

Univ Roll no.1608481 21


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Hierarchy of Exception classes

Multithreading
Multithreading in java is a process of executing multiple threads simultaneously. The aim of
multithreading is to achieve the concurrent execution.
Thread
Thread is a lightweight component and it is a flow of control. In other words, a flow of control
is known as thread.
State of a thread are classified into five types they are
1. New State
2. Ready State
3. Running State
4. Waiting State
5. Halted or dead State
Collection
Collections in java is a framework that provides an architecture to store and manipulate the
group of objects. All the operations that you perform on a data such as searching, sorting,
insertion, manipulation, deletion etc. can be performed by Java Collections. Java Collection
simply means a single unit of objects. Java Collection framework provides many interfaces
(Set, List, Queue, Deque etc.) and classes (ArrayList, Vector, LinkedList, PriorityQueue,
HashSet, LinkedHashSet, TreeSet etc)

Univ Roll no.1608481 22


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

TECHNOLOGY USED

WINDOWS 10

Windows 10 (codenamed Redstone, formerly Threshold) is a personal computer operating


system developed and released by Microsoft, as part of the Windows NT family of operating
systems. It was released on July 29, 2015. It is the first version of Windows that receives
ongoing feature updates. Devices in enterprise environments can receive these updates at a
slower pace,or use long-term support milestones that only receive critical updates, such as
security patches, over their ten-year lifespan of extended support.
Windows 10 introduces what Microsoft described as "universal apps"; expanding on Metro-
style apps, these apps can be designed to run across multiple Microsoft product families with
nearly identical code—including PCs, tablets, smartphones, embedded systems, Xbox
One, Surface Hub and Mixed Reality. The Windows user interface was revised to handle
transitions between a mouse-oriented interface and a touchscreen-optimized interface based
on available input devices—particularly on 2-in-1 PCs; both interfaces include an
updated Start menu which incorporates elements of Windows 7's traditional Start menu with
the tiles of Windows 8. The first release of Windows 10 also introduces a virtual
desktop system, a window and desktop management feature called Task View, the Microsoft
Edge web browser, support for fingerprint and face recognition login, new security features
for enterprise environments, and DirectX 12 and WDDM 2.0 to improve the operating
system's graphics capabilities for games.

Windows 10 received mostly positive reviews upon its original release in July 2015; critics
praised Microsoft's decision to provide a desktop-oriented interface in line with previous
versions of Windows, contrasting the tablet-oriented approach of 8, although Windows 10's
touch-oriented user interface mode was panned for containing regressions upon the touch-
oriented interface of Windows 8.

Univ Roll no.1608481 23


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

DEVELOPMENT TOOL

1.NETBEANS IDE

NetBeans IDE is an open-source integrated development environment. NetBeans IDE


supports development of all Java application types (Java SE (including JavaFX), Java
ME, web, EJB and mobile applications) out of the box. Among other features are an Ant-
based project system, Maven support, refactoring, version
control(supporting CVS, Subversion, Git, Mercurial and Clearcase).
Modularity: All the functions of the IDE are provided by modules. Each module provides a
well-defined function, such as support for the Java language, editing, or support for
the CVS versioning system, and SVN.
NetBeans contains all the modules needed for Java development in a single download,
allowing the user to start working immediately. Modules also allow NetBeans to be extended.
New features, such as support for other programming languages, can be added by installing
additional modules.
For instance, Sun Studio, Sun Java Studio Enterprise, and Sun Java Studio Creator from Sun
Microsystems are all based on the NetBeans IDE.
2. MYSQL (VERSION 5.0)

Univ Roll no.1608481 24


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

MySQL is an open-source relational database management system (RDBMS).Its name is a


combination of "My", the name of co-founder Michael Widenius's daughter,and "SQL", the
abbreviation for Structured Query Language. The MySQL development project has made
its source code available under the terms of the GNU General Public License, as well as
under a variety of proprietary agreements. MySQL was owned and sponsored by a single for-
profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation. For
proprietary use, several paid editions are available, and offer additional functionality.
MySQL is a central component of the LAMP open-source web application software stack
(and other "AMP" stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl/PHP
/Python".
Applications that use the MySQL database
include: TYPO3, MODx, Joomla, WordPress, Simple Machines Forum, phpBB, MyBB,
and Drupal. MySQL is also used in many high-profile, large-scale websites,
including Google (though not for searches), Facebook, Twitter, Flickr and YouTube.

MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home brewed
lexical analyzer. MySQL works on many system platforms, including AIX, BSDi, FreeBSD,
HP-UX, eComStation, i5/OS, IRIX, Linux, macOS, Microsoft Windows, NetBSD, Novell
NetWare, OpenBSD, OpenSolaris, OS/2 Warp, QNX, Oracle Solaris, Symbian, SunOS, SCO
OpenServer, SCO UnixWare, Sanos and Tru64. A port of MySQL to OpenVMS also exists.
MySQL has received positive reviews, and reviewers noticed it "performs extremely well in
the average case" and that the "developer interfaces are there, and the documentation (not to
mention feedback in the real world via Web sites and the like) is very, very good".It has also
been tested to be a "fast, stable and true multi-user, multi-threaded sql database server".

Univ Roll no.1608481 25


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

PROJECT OVERVIEW

Introduction of the Project Airlines Reservation System:

The "Airlines Reservation System" has been developed to override the problems prevailing in
the practicing manual system. This software is supported to eliminate and, in some cases,
reduce the hardships faced by this existing system. Moreover, this system is designed for the
particular need of the company to carry out operations in a smooth and effective manner.

The application is reduced as much as possible to avoid errors while entering the data. It also
provides error message while entering invalid data. No formal knowledge is needed for the
user to use this system. Thus, by this all it proves it is user-friendly. Airlines Reservation
System, as described above, can lead to error free, secure, reliable and fast management
system. It can assist the user to concentrate on their other activities rather to concentrate on
the record keeping. Thus, it will help organization in better utilization of resources.

Every organization, whether big or small, has challenges to overcome and managing the
information of Flights, Airlines Tickets, Customers, Vendors, Booking Counter. Every
Airlines Reservation System has different Airlines Tickets needs, therefore we design
exclusive employee management systems that are adapted to your managerial requirements.
This is designed to assist in strategic planning and will help you ensure that your organization
is equipped with the right level of information and details for your future goals. Also, for that
busy executive who are always on the go, our systems come with remote access features,
which will allow you to manage your workforce anytime, at all times. These systems will
ultimately allow you to better manage resources.

Functionalities provided by Airlines Reservation System are as follows:

 Provides the searching facilities based on various factors. Such as Airlines Tickets,
Bookings, Customers, Booking Counter

 Airlines Reservation System also manage the Vendors details online for Customers details,
Booking Counter details, Airlines Tickets.

 It tracks all the information of Flights, Customers etc

 Manage the information of Flights

 Shows the information and description of the Airlines Tickets, Bookings

Univ Roll no.1608481 26


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

 To increase efficiency of managing the Airlines Tickets, Flights

 Manage the information of Airlines Tickets

 Editing, adding and updating of Records is improved which results in proper resource
management of Airlines Tickets data

Scope of the project Airlines Reservation System

It may help collecting perfect management in details. In a very short time, the collection will
be obvious, simple and sensible. It will help a person to know the management of passed year
perfectly and vividly. It also helps in current all works relative to Airlines Reservation
System. It will be also reduced the cost of collecting the management & collection procedure
will go on smoothly. Our project aims at Business process automation, i.e. we have tried to
computerize various processes of Airlines Reservation System.

 In computer system the person has to fill the various forms & number of copies of the
forms can be easily generated at a time.

 In computer system, it is not necessary to create the manifest but we can directly print it,
which saves our time.

 To assist the staff in capturing the effort spent on their respective working areas.

 To utilize resources in an efficient manner by increasing their productivity through


automation.

 The system generates types of information that can be used for various purposes.

 It satisfy the user requirement


 Be easy to understand by the user and operator

 Be easy to operate

 Have a good user interface

Modules of Airlines Reservation System:

 Airlines Tickets Management Module: Used for managing the Airlines Tickets details.

 Booking Counter Module: Used for managing the details of Booking Counter

Univ Roll no.1608481 27


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

 Flights Management Module: Used for managing the information and details of the Flights.
 Bookings Module: Used for managing the Bookings details

 Customers Module: Used for managing the Customers information

 Login Module: Used for managing the login details

Features of the project Airlines Reservation System:

 Product and Component based

 Creating & Changing Issues at ease

 Simple Status & Resolutions

 It contains better storage capacity.

 Accuracy in work.

 Easy & fast retrieval of information

 Decrease the load of the person involve in existing manual system.

 Work becomes very speedy.

 Easy to update information

Univ Roll no.1608481 28


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Screenshots

Univ Roll no.1608481 29


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Univ Roll no.1608481 30


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Univ Roll no.1608481 31


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Univ Roll no.1608481 32


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Conclusion of the Project Airlines Reservation System

Our project is only a humble venture to satisfy the needs to manage their project work.
Several user-friendly coding have also adopted. This package shall prove to be a powerful
package in satisfying all the requirements of the school. The objective of software planning is
to provide a frame work that enables the manger to make reasonable estimates made within a
limited time frame at the beginning of the software project and should be updated regularly as
the project progresses.

At the end it is concluded that we have made effort on following points

 A description of the background and context of the project and its relation to work already
done in the area.

 Made statement of the aims and objectives of the project.

 The description of Purpose, Scope, and applicability.

 We define the problem on which we are working in the project.

 We describe the requirement Specifications of the system and the actions that can be done
on these things.

 We understand the problem domain and produce a model of the system, which describes
operations that can be performed on the system.

 We included features and operations in detail, including screen layouts.

 We designed user interface and security issues related to system.

 Finally the system is implemented and tested according to test cases.

Univ Roll no.1608481 33


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

Future Scope of the Project

In a nutshell, it can be summarized that the future scope of the project circles around
maintaining information regarding:

 We can add printer in future.

 We can give more advance software for Airlines Reservation System including more
facilities

 We will host the platform on online servers to make it accessible worldwide

 Integrate multiple load balancers to distribute the loads of the system

 Create the master and slave database structure to reduce the overload of the database
queries

 Implement the backup mechanism for taking backup of codebase and database on regular
basis on different servers

The above-mentioned points are the enhancements which can be done to increase the
applicability and usage of this project. Here we can maintain the records of Airlines Tickets
and Flights. Also, as it can be seen that now-a-days the players are versatile, i.e. so there is a
scope for introducing a method to maintain the Airlines Reservation System. Enhancements
can be done to maintain all the Airlines Tickets, Flights, Bookings, Customers, Booking
Counter.

In the last we would like to thanks all the persons involved in the development of the system
directly or indirectly. We hope that the project will serve its purpose for which it is develop
there by underlining success of process.

Univ Roll no.1608481 34


A REPORT OF SIX WEEKS INDUSTRIAL TRAINING

References

 Google for problem solving

 http://www.javaworld.com/javaworld/jw-01-1998/jw-01-Credentialreview.html

 Database Programming with JDBC and Java by O'Reilly

 http://www.jdbc-tutorial.com/

 https://www.tutorialspoint.com/java/

 http://www.javatpoint.com/java-tutorial

 https://docs.oracle.com/javase/tutorial/

 http://www.wampserver.com/en/

 http://www.tutorialspoint.com/mysql/

Univ Roll no.1608481 35

You might also like