reportfinalsem
reportfinalsem
OF
*6 MONTHS TRAINING UNDERTAKEN
AT
“INFOSYS ”
ON
PROJECT
IN JAVA FULL STCAK
SUBMITTED IN PARTIAL FULLFILLMENT OF THE TRAINING
OF
BACHELOR OF TECHNOLOGY
IN
Computer Science and Engineering
Submitted By:
Name: ANKIT MOUDGILL
Roll No.:12101238 CE8
1. Acknowledgement.................................................................................................................
2. Introduction......................................................................................................................
3. Organisation ..........................................................................................................................
4. Basics Of Java ............................................................................................................................
Overview Of Java.............................................................................................................
Features Of Java ...............................................................................................................
Java ClassPath Setting .................................................................................................
Steps For Compiling And Executing Programs ..........................................................
Difference Between JDK,JRE And JVM..........................................................................
Object And Class.............................................................................................................
Data Types...................................................................................................................................
Variables.......................................................................................................................................
Operators And Its Types............................................................................................................
5. Programming Concepts...........................................................................................................
Structure Of Java Program...............................................................................................
Main Method...............................................................................................................
Decision Making Statement ........................................................................................
Looping Statement............................................................................................................
Wrapper Classes ...............................................................................................................
Access Modifiers..........................................................................................................
Conclusions..........................................................................................................................
References..................................................................................................................................
ACKNOWLEDGEMENT
I am grateful to INFOSYS for giving me opportunity to carry out the Training in JAVA
FULL STACK and project work. I would like to also thank whole faculty of the institute on
Deepest thanks to our Mentor Dr Priyanka Jarial for his guidance, monitoring, constant
encouragement and correcting various assignments of ours with attention and care. He has
taken pain to go through the project and training sessions and make necessary corrections as
CANDIDATE'S DECLARATION
I “ANKIT MOUDGILL” hereby declare that I have undertaken Industrial training at “INFOSYS”
partial fulfillment of requirements for the award of degree of B.Tech (Department of Computer
Science & Engineering) at Punjabi University, Patiala. The work which is being presented in the
Signature of Examiner
ABOUT THE COMPANY
Infosys is a multinational
business enterprise that operates in a range of industries. The company is a
world leader in digital carrier and consulting. Consultation, nextgeneration
technology, and outsourcing offerings are the company's predominant
business lines. Infosys is a world chief into digital purposes and consulting
because of the subsequent generation. They aid clients of upstairs 50
worldwide places into navigating their digital transformation. They expertly
information our purchasers thru their digital journey, having spent over
three many years managing the structures and operations of world
enterprises. They accomplish this by way of supplying the organisation with
an AI-powered core that aids in the prioritization of exchange execution.
They additionally empathize with the enterprise through handing over
extraordinary levels of overall performance and consumer satisfaction via
agile digital at their non-stop enchantment through constructing and
transferring digital skills, expertise, and ideas from innovation ecosystem.
Their merchandise assists corporations improve deeper connections along
stakeholders, rule continuous innovation yet accelerate increase among the
digital world. The power their clients’ boom into unexpectedly evolving
areas kind of banking, digital marketing, interactive commerce, distributive
trade, credit servicing, consumer service. The company offers various role
like developer, designer, tester and manager in the company, but, before
becoming the associate every person should complete the intern period and
after the intern period there is one year of probation period in the company
for the associate to join the company. Infosys tagline is “Powered by
Intellect, Driven by Values”. Established in 1981, Infosys was founded by a
core team of seven mem ers with a main lead of N.R Narayan Murthy and
Nandan Nilekani. Infosys is a NYSE listed global consulting and IT services
organization with greater than 310k employees. From a capital of US$250,
we have grown to become a US$
1.2 Mission, Vision, Values and Objectives
1.2.1 Mission The Infosys mission is to achieve objective under a set of ethics in an
environment which has values like even-handedness, obeisance and righteousness
toward its customer, people of Infosys, dealers and society. In particular to its newly
appointed employees is mandated to undergo internship. The internship is given to
provide best information in order to train trainee with the best of their ability for
their associate role. It spends an ample amount of time effort and money in training
before introducing people to actual work in a real environment.
1.2.2 Vision The Infosys vision is to be a respectable corporation all around the
world and to provide best of class answers weather for business breakthrough or
leveraging technologies which is delivered by best-in-class people. In terms of
training and internship Infosys vision is to provide an ideal education to all the
trainee irrespective to college the person come from. 1.2.3. Values The values of the
organization are as follows:
1.2.3.1 Valuing People Infosys believes so much its advancement is principally
based about people They wish improve or hold high-quality, together excellent
relationships along their clients, expert referral sources, vendors, neighbourhood
members, and each other if he honours human beings between the whole thing
employee do.
1.2.3.2 Building Client Relationships Infosys seeks in conformity with acquire
long-term consumer loyalty by means of thriving a deep understanding concerning
each client's commercial enterprise and personal goals, by demonstrating firm
reliability and honour.
between their assignment and stability by performing namely an unbiased or
objective guide after their clients.
1.2.3.3 Upholding Quality and Integrity Infosys choice maintain surroundings
where a dedication in imitation of quality, permanency, longevity, honesty, respect,
fidelity then professional principle governs the moves yet selections regarding
everyone inside the firm.
1.2.3.4 Key to Success
• Complete the work with honesty.
• Complete the action on time.
• Complete the gauging.
• Complete the assignment in schedule time.
• Try to reach out learn and research.
• Open mind to learn new things.
1.2.4 Objective The Infosys mission is to achieve objective under a set of ethics in
an environment which has values like even-handedness, obeisance and
righteousness toward its customer, people of Infosys, dealers and society.
Moreover, the overarching objective is to instruct the performance of the company
toward its specialised services and to become a national leader in this niche. As well
as to grow the business at a pace that would be both difficult and manageable, while
providing the industry with innovation and adaptability.
INTRODUCTION
Java is one of the programming language or technology used for developing web applications.
Java language developed at SUN Micro Systems in the year 1995 under the guidance oF Gosling
and there team. Originally SUN Micro Systems is one of the Academic university (Standford
University Network)
Whatever the software developed in the year 1990, SUN Micro Systems has released on the
name of oak, which is original name of java (scientifically oak is one of the tree name). The
OAK has taken 18 months to develop.The oak is unable to fulfill all requirements of the
industry. So James Gosling again reviews this oak and released with the name of java in the
year 1995. Scientifically java is one of the coffee seed name.
J2SE
J2EE
J2ME
J2ME is used for developing mobile or wireless application by making use of a predefined
protocol called WAP (wireless Access / Application protocol).
BASIC OF JAVA
Overview Of Java
Define JRE
The Java Runtime Environment (JRE) is part of the Java Development Kit (JDK). It
contains set of libraries and tools for developing java application. The Java Runtime
Environment provides the minimum requirements for executing a Java application.
Define JVM
JVM is set of programs developed by sun Micro System and supplied as a part of jdk for
reading line by line of byte code and it converts into native understanding form of operating
system. Java language is one of the compiled and interpreted programming language.
Garbage Collector
Garbage Collector is the system Java program which runs in the background along with
regular Java program to collect un-Referenced (unused) memory space for improving the
performance of our applications.
Define an API
Java programming is containing user friendly syntax so that we can develop effective application
s. in other words if any language is providing user friendly syntax, we can develop error free
applications.
Definition of JIT
JIT is the set of programs developed by SUN Micro System and added as a part of JVM, to
speed up the interpretation phase
Features Of JAVA
Features of a language are nothing but the set of services or facilities provided by the language
vendors to the industry programmers. Some important features are;
Fig1.1
Fig1.2
Java Classpath Setting
Path Variable
Path variable is set for providing path for all java tools like java, javac, javap, javah, jar,
appletviewer which are use in java programming. These all tools are available in bin folders
so we set path upto bin folders.
Classpath Variable
Classpath variable is set for providing path for predefined java classes which is used in our
application. All classes are available in lib/rt.jar so we set classpath upto lib/rt.jar.
Fig1.3
Jvm, Jre, Jdk these all the backbone of java language. Each components have separate works.
Jdk and Jre physically exists but Jvm are abstract machine it means it not physically exists.
JVM : JVM (Java Virtual Machine) is a software. It is a specification that provides runtime
environment in which java bytecode can be executed. It not physically exists.JVMs are not
same for all hardware and software, for example for window os JVM is different and for Linux
VJM is different. JVM, JRE and JDK are platform dependent because configuration of each OS
differs. But, Java is platform independent.
JRE : The Java Runtime Environment (JRE) is part of the Java Development Kit (JDK). It
contains set of libraries and tools for developing java application. The Java Runtime
Environment provides the minimum requirements for executing a Java application. It
physically exists. It contains set of libraries + other files that JVM uses at runtime.
JDK : The Java Development Kit (JDK) is primary components. It physically exists. It is
collection of programming tools and JRE, JVM.
Object is the physical as well as logical entity where as class is the only logical entity. Class:
Class is a blue print which is containing only list of variables and method and no memory is
allocated for them. A class is a group of objects that has common properties.
1 Data Member
2 Method
3 Constructor
4 Block
7 Behavior
8 Identity
State: Represents data (value) of an object.
Behavior: Represents the behavior (functionality) of an object such as deposit, withdraw etc. Identity:
Object identity is typically implemented via a unique ID. The value of the ID is not visible to
the external user. But,it is used internally by the JVM to identify each object uniquely.
Data Types
Datatype is a spacial keyword used to allocate sufficient memory space for the data, in other words Data
type is used for representing the data in main memory (RAM) of the computer.
In general every programming language is containing three categories of data types. They are
Variable is an identifier which holds data or another one variable is an identifier whose value
can be changed at the execution time of program. Variable is an identifier which can be used to
identify input data in a program.
Operator is a special symbol that tells the compiler to perform specific mathematical or logical
Operation. Java supports following lists of operators.
1 Arithmetic Operators
2 Relational Operators
3 Logical Operators
4 Bitwise Operators
5 Assignment Operators
6 Ternary or Conditional Operators
PROGRAMMING CONCEPTS
Structure of a java program is the standard format released by Language developer to the
Industry programmer. Sun Micro System has prescribed the following structure for the java
programmers for developing java application.
Fig2.1
Main( ) Method
main() method is starting execution block of a java program or any java program start their
execution from main method. If any class contain main() method known as main class.
Fig2.2
1 if
2 if-else
3 switch
Looping Statement
for loop
While loop
do-while
Wrapper Classes
For each and every fundamental data type there exist a pre-defined class, Such predefined
class is known as wrapper class. The purpose of wrapper class is to convert numeric string
data into numerical or fundamental data.
Access modifiers:
Access modifiers are those which are applied before data members or methods of a class.
These are used to where to access and where not to access the data members or methods. In
java programming we have four access modifiers they are
Fig2.3
The static keyword is used in java mainly for memory management. Static keyword are used with
variables, methods, blocks and nested class. Static is a keyword that are used for share the
same variable or method of a given class. This is used for a constant variable or a method that is
the same for every instance of a class. The main method of a class is generally labeled static.
This keyword
this is a reference variable that refers to the current object. It is a keyword in java language represents current class
object
Super
keyword
Super keyword in java is a reference variable that is used to refer parent class object. Super is an
implicit keyword create by JVM and supply each and every java program for performing
important role in three places.
3 At variable level
4 At method level
5 At constructor level
Synchronize
Keyword
Synchronized Keyword is used for when we want to allow only one thread at a time then
use Synchronized modifier. If a method or block declared as a Synchronized then at a time
only one thread is allowed to operate on the given object.
We know that every java program must start with a concept of class that is without classes
concept there is no java program perfect.In java programming we have two types of classes they
are
1. Concrete class
2. Abstract class
Types of constructors
Based on creating objects in Java constructor are classified in two types. They are
2 Parameterized constructor.
Static Block in Java
Static block is a set of statements, which will be executed by the JVM before execution of main
method. At the time of class loading if we want to perform any activity we have to define
that activity inside static block because static block execute at the time of class loading.
In a class we can take any number of static block but all these static block will be execute from top
to bottom.
Relationship in Java
Type of relationship always makes to understand how to reuse the feature from one class to another
class. In java programming we have two types of relationship they are.
1 Is-A Relationship
2 Has-A Relationship
The process of obtaining the data members and methods from one class to another class is known as
inheritance. It is one of the fundamental features of object-oriented programming.
A class that is declared with abstract keyword, is known as abstract class. An abstract class is one
which is containing some defined method and some undefined method. In java programming
undefined methods are known as un-Implemented or abstract method.The process of
obtaining the data members and methods from one class to another class is known as
inheritance. It is one of the fundamental features of object-oriented programming.
Types of Inheritance
1 Single inheritance
2 Multiple inheritance
3 Hierarchical inheritance
4 Multilevel inheritance
5 Hybrid inheritance
Method Overloading
Whenever same method name is exiting multiple times in the same class with different number of
parameter or different order of parameters or different types of parameters is known as method
overloading.
Suppose we have to perform addition of given number but there can be any number of arguments, if we
write method such as a(int, int)for two arguments, b(int, int, int) for three arguments then it is
very difficult for you and other programmer to understand purpose or behaviors of method they
can not identify purpose of method. So we use method overloading to easily figure out the
program. For example above two methods we can write sum(int, int) and sum(int, int, int)
using method overloading concept.
Whenever same method name is existing in both base class and derived class with same types of parameters or
same order of parameters is known as method Overriding.
Fig3.1
Interface
Interface is similar to class which is collection of public static final variables (constants) and abstract
methods.The interface is a mechanism to achieve fully abstraction in java. There can be only abstract methods in
the interface. It is used to achieve fully abstraction and multiple inheritance in Java.
If we are talking about implementation but not completely (partially implemented) then we should be
go for abstract
Abstraction
Abstraction is the concept of exposing only the required essential characteristics and behavior with
respect to a context.
Hiding of data is known as data abstraction. In object oriented programming language this is
implemented automatically while writing the code in the form of class and object.
Abstraction shows only important things to the user and hides the internal details for example when we
ride a bike, we only know about how to ride bike but can not know about how it work ?
and also we do not know internal functionality of bike.
Encapsulation
Encapsulation is a process of wrapping of data and methods in a single unit is called encapsulation.
Encapsulation is achieved in java language by class concept.Combining of state and behavior in
a single container is known as encapsulation. In java language encapsulation can be achieve
using class keyword, state represents declaration of variables on attributes and behavior
represents operations in terms of method.
Benefits of encapsulation
Polymorphism is not a programming concept but it is one of the principal of OOPs. For many objects
oriented programming language polymorphism principle is common but whose
implementations are varying from one objects oriented programming language to another
object oriented programming language.
JAVA ADVANCED
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.
Fig3.2
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
1 Checked Exception
2 Un-Checked Exception
Fig4.1
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 components 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
String
String is a sequence of characters enclosed within double quotes (" ") is known as String.
Example: "Java Programming".
In java programming to store the character data we have a fundamental datatype called char.
Similarly to store the string data and to perform various operation on String data, we have
three predefined classes they are:
1 String
2 String Buffer
3 String Builder
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).
PROJECT UNDERTAKEN
SALE RECORDING SYSTEM(Admin Level) JAVA based with back-end controlled by
JDBC.
Database Used: MySql
JDBC (Java Database Connectivity) is uses for connect java application with database. It is
Java SE technology, which is install automatically with the jdk software. Jdbc is an API
(Application programming interface) used to communicate Java application to database in
database independent and platform independent manner. It provides classes and interfaces to
connect or communicate Java application with database.
Report is the free, open source report designer for Jasper Reports and Jasper Reports
Server. Create very sophisticated layouts containing charts, images, sub reports, crosstabs and
much more. Access your data through JDBC, Table Models, JavaBeans, X ML, Hibernate, CSV,
and custom sources. Then publish your reports as PDF, RTF, XML, XLS, CSV, HTML, XHTML,
CUSTOMER INPUT
FIRST WE ENTER CUSTOMER DETAIL NAME AND CONTACT
NUMBER FOR FUTURE REFFERENCE
PRODUCT INPUT
THE PRODUCT IS ADDED TO MAINTAIN THE STOCK OF
PRODUCTS.
SUPPLIER INPUT
TO ADD THE SUPPLIER REFFERENCE
INVOICE PRINT
THE INVOICE INPUT LOOKS LIKE THIS WHICH
INCLUDE PRODUCT NAME,BARCODE,QTY,AND
PRICE
Future Enhancements:
While the current version of the Sale Recording System is functional and efficient, there are several
potential areas for improvement and expansion to further enhance its capabilities. The following
future enhancements could be considered to take the system to the next level:
1.1 BackendDevelopment
APIDevelopment:FinishbuildingRESTfulAPIendpointsforuserauthe
ntication, menu retrieval, order placement, and reviews.
Database Integration: Set up MongoDB with proper schema design
for users, restaurants, menus, and orders.
7.2. FrontendDevelopment
7.5. Testing
The Sale Recording System developed using Core java and various essential modules has
successfully addressed the challenges associated with manual Sale recording System such as book
keeping. By automating Billing operations and providing an intuitive user interface.
The system's core features ,customer detail product details ,supplier detail ,billing system and sale
report with payment status have proved to be effective in local shops. The integration of
technologies such as Japersoftireport , MySQL, , javaswing, and Xammp has played a vital role in
ensuring a seamless and robust Sale recording System.
Throughout the development process, special attention was given to record management and input,
resulting in a user-friendly system that meets the requirements and expectations of its users.
Additionally, the system's admin dashboard and report generation capabilities empower
administrators with valuable insights to optimize the customer details and enhance overall service
quality.
As a future-oriented project, there are several potential enhancements that can be explored to further
elevate the Sale Recording System. Integration with cashless payment methods, the development of
a dedicated mobile application, and the implementation of machine learning algorithms for resource
optimization are some of the key improvements that can add significant value to the system.
In conclusion, the Sale Recording System has proven to be a valuable addition to the customer as
well as for the host, effectively managing accounts book and contributing to a more efficient and
convenient experience for users. By continuously evolving and incorporating future enhancements,
the system can remain a relevant and essential tool for the people’s, ensuring that restaurant
management remains a hassle-free and streamlined process.