Report On Java Training 1
Report On Java Training 1
INDUSTRIAL TRAINING
REPORT
Submitted by
Ajay Swami ON
20EBKCS005
Core Java
Organization
Submitted in partial fulfillment for the Degree
Learn Vern
of
B.Tech
in
Computer Science
Session: 2022-23
CSE
ACKNOWLEDGEMENT
CERTIFICATE
lOMoAR cPSD| 20915023
CONTENT
1. Introduction..............................................................................
.......................................1
2. Basics Of
Java..........................................................................................
.......................2
2.1. Overview Of
Java..........................................................................................
.........2
2.2. Features Of
Java..........................................................................................
...........3
2.3. Java ClassPath
Setting......................................................................................
......4
2.4. Steps For Compiling And Executing
Programs..........................................................4
2.5. Difference Between JDK,JRE And
JVM...................................................................5
2.6. Object And
Class.............................................................................................
...........5
2.7. Data
Types............................................................................................
......................6
2.8. Variables.......................................................................................
..............................7
2.9. Operators And Its
Types............................................................................................
..7
3. Programming
Concepts.......................................................................................
...............7
3.1. Structure Of Java
Program........................................................................................
..7
3.2. Main
Method.........................................................................................
......................8
lOMoAR cPSD| 20915023
4. Java Useful
Keywords.....................................................................................
...................9
4.1. Final..............................................................................................
...............................9
4.2. Static
......................................................................................................
.....................9
4.3. This...............................................................................................
...............................10
4.4. Super.............................................................................................
...............................10
4.5. Synchronized................................................................................
...............................10
5.5. Relationship In
Java...............................................................................................
.......11
6. Java Object
Oriented........................................................................................
................12
6.1. .
Inheritance....................................................................................
.............................12
6.2. Method
Overloading..................................................................................
................13
6.3. Method
Overriding....................................................................................
................13
6.4. Interface........................................................................................
.............................14
6.5. Abstraction...................................................................................
.............................14
6.6. Encapsulation...............................................................................
.............................15
6.7. Polymorphism..............................................................................
.............................15
7. Java
Advanced......................................................................................
............................16
7.1. Package.........................................................................................
.............................16
7.2. Exception
Handling.......................................................................................
............16
7.3. Multithreading..............................................................................
.............................17
7.4. String............................................................................................
..............................17
7.5. Collection.....................................................................................
..............................1810. Projects
Undertaken...................................................................................
.....................19
lOMoAR cPSD| 20915023
Conclusions..................................................................................
.....................................21
References....................................................................................
.....................................22
lOMoAR cPSD| 20915023
INTRODUCTION
J2SE
J2EE
J2ME
BASICS OF JAVA
Overview Of Java
Define JRE
Define JVM
Garbage Collector
Definition of JIT
Features Of JAVA
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
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.
• Data Member
• Method
• Constructor
• Block
• State
• Behavior
• Identity
State: Represents data (value) of an object.
lOMoAR cPSD| 20915023
Data Types
Variable
• Arithmetic Operators
• Relational Operators
• Logical Operators
• Bitwise Operators
• Assignment Operators
• Ternary or Conditional Operators
PROGRAMMING CONCEPTS
Main( ) Method
• if
• if-else
• switch
Looping Statement
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
Final keyword
Super keyword
• At variable level
• At method level
Abstract Classes
Types of constructors
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
• Is-A Relationship
• Has-A Relationship
Inheritance
Types of Inheritance
• Single inheritance
• Multiple inheritance
• Hierarchical inheritance
• Multilevel inheritance
• Hybrid inheritance
Method Overloading
Interface
Abstraction
Encapsulation
Benefits of encapsulation
Polymorphism
JAVA ADVANCED
Package
Purpose of package
Exception Handling
Type of Exception
• Checked Exception
• Un-Checked Exception
Multithreading
1. New State
2. Ready State
3. Running State
lOMoAR cPSD| 20915023
4. Waiting State
5. Halted or dead State
String
• String
• StringBuffer
• StringBuilder
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).
lOMoAR cPSD| 20915023
CONCLUSION