Java Report
Java Report
Internship Report
ON
“Java”
From
“INTERNSHALA”
Including
“CORE JAVA”
SUBMITTED BY:
Under Supervision of
Prakhar Singh
Acknowledgement
Deepest thanks to My Teachers Priya Singh and Rahul Kumar for her guidance,
monitoring, constant encouragement and correcting various assignments of ours
with attention and care. She has taken pain to go through the project and
training sessions and make necessary corrections as when needed and we are
very grateful for that.
INDEX
For Course
1. Course Certificate
2. Course Objective
3. Perquisite Knowledge Required
4. Course Modules
5. Brief description of course.
6. Course learning outcomes
7. Applications of the course
8. Advanced courses suggested for future
CERTIFICATE
COURSE OBJECTIVE
Originally , SUN Micro Systems has released on the name of OAK ,which is
original name of Java (Scientifically OAK is one of the tree name). James
Gosling again reviews this OAK and released with the name of Java in the year
1995. Scientifically Java is one of the coffee name.
J2SE
J2EE
J2ME
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.
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.
API
JIT
JIT (Just In Time) is the set of programs developed by SUN Micro System and
added as a part of JVM, to speed up the interpretation phase.
Difference Between JDK, JRE AND JVM
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.
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.
Object And Class
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
Class and Interface
Object : Object is a instance of class, object has state and behaviors.An Object
in java has three Characteristcs:
State
Behavior
Identity
Variable
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Ternary or Conditional Operators
Decision Making Statement
Looping Statement
for
while
do while
JAVA USEFUL KEYWORDS
Final keyword
Static keyword
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 labelled
static.
This keyword
At variable level
At method level
At constructor level
Synchronized 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.
JAVA CLASSES, BLOCKS AND CONSTRUCTORS
Abstract Classes
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
Concrete class
Abstract class
Types of constructors
Based on creating objects in Java constructor are classified in two types. They
are
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.
Is-A Relationship
Has-A Relationship
JAVA OBJECT ORIENTED
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.
Types of Inheritance
Single inheritance
Hierarchical inheritance
Multilevel 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 program.
For example above two methods we can write sum(int, int) and sum(int, int, int)
using method overloading concept.
Method Overriding
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
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
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.
Type of Exception
Checked Exception
Un-Checked Exception
String
String
StringBuffer
StringBuilder
Collection
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.
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.