Java Summer Training Report
Java Summer Training Report
Submitted by
<Name of the Student>
<Register Number>
I am grateful to Hewlett Packard Enterprise India Pvt. Ltd, Gurgaon for giving me opportunity to
carry out the project work in the area of console based portal designing during my training. I
would like to also thank my institute, Jaypee Institute of Information Technology, Noida for
giving permission and necessary administrative support to take up the training work at Hewlett
Deepest thanks to our Trainer Mr. Gaurav Kumar(Senior Trainer) 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
DURGESHWAR SINGH
CONTENT
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..........................................................................................................
Conclusions..................................................................................................................... 21
References....................................................................................................................... 22
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 James
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).
ORGANISATION
HP the largest IT company in the world, through its partner offers high quality Courses for 4 &
6 weeks. Few Courses in Summer Training Program are Programming Techniques using 'C',
PHP, VLSI, VHDL & PCB Design, Data Structure using C Language, Core Java, J2EE -
Hibernate with Spring Framework, J2EE - Struts with Hibernate Framework, Android,
ASP.NET With C#, Embedded & Robotics-Basics & Advanced, ARM, Linux Administration
with Scripting, Networking concepts with security.
BASICS 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;
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.
The following sequence of steps represented in the diagram use compiling the java program and
executing the java programs.
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.
Data Member
Method
Constructor
Block
State
Behavior
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
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.
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Inheritance
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
Single inheritance
Multiple inheritance
Hierarchical inheritance
Multilevel inheritance
Hybrid inheritance
It's main uses are to enable polymorphism and to be able to reuse code for different
classes by putting it in a common super class
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.
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
Benefits of encapsulation
Polymorphism
The process of representing one form in multiple forms is known as Polymorphism.Here original
form or original method always resides in base class and multiple forms represents overridden
method which resides in derived classes.
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.
CONCLUSIONS
Practical knowledge means the visualization of the knowledge, which we read in our books. For
this, we perform experiments and get observations. Practical knowledge is very important in every
field. One must be familiar with the problems related to that field so that he may solve them and
become a successful person.
enter in professional life. According to this life, he has to serve an industry, may be public or
private sector or self-own. For the efficient work in the field, he must be well aware of the practical
knowledge as well as theoretical knowledge.
Due to all above reasons and to bridge the gap between theory and practical, our
Engineering curriculum provides a practical training of 45 days. During this period
a student work in the industry and get well all type of experience and knowledge
about the working of companies and hardware and software tools.
I have undergone my 45 days summer training in 7th sem at Hewlett Packard Enterprise India
Pvt Ltd. This report is based on the knowledge, which I acquired during my 45 days of
summer training.
REFERENCES
Google Group-javatechzone