Java project
Java project
INDUSTRIAL TRAINING
REPORT
ON
Submitted by
JAVA PROGRAMMING
VIVEK BUDANIA
21EBKCS116 INTERNSHIP
Session - 2024
2024
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
B.K. BIRLA INSTITUTE OF ENGINEERING &TECHNOLOGY
PILANI - 333 031 (RAJ)
(Affiliated to Bikaner Technical University, Bikaner)
Acknowledgement
I would like to acknowledge the contributions of the following people without whose
help and guidance this report would not have been completed.
Vivek Budania
TABLE OF CONTENT
1. Acknowledgement
2. Introduction
3. Organization
4. Basics Of Java
4.1. Overview Of Java
4.2. Features Of Java
4.3. Java Class Path Setting
4.4. Steps For Compiling and Executing Programs
4.5. Difference Between JDK, JRE And JVM
4.6. Object And Class
4.7. Data Types
4.8. Variables
4.9. Operators And Its Types
5. Programming Concepts
5.1. Structure Of Java Program
5.2. Main Method
5.3. Decision Making Statement
5.4. Looping Statement
5.5. Wrapper Classes
5.6. Access Modifiers
10. Conclusion
2. INTRODUCTION
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.
2.1 J2SE
2.2 J2EE
2.3 J2ME
4 BASICS OF JAVA
Define JRE
Define JVM
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
An API (Application Programming Interface) is a collection of
packages, a package is the collection of classes, interfaces and
subpackages. A sub- package is a collection of classes interfaces and
sub sub packages etc.
JIT is the set of programs developed by SUN Micro System and added as a part
of JVM, to speed up the interpretation phase
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.
4.5.2 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 is the physical as well as logical entity whereas class is the only
logical entity. Class: Classis 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.
4.6.1.2 Method
4.6.1.3 Constructor
4.6.1.4 Block
4.6.2.2 Behavior
4.6.2.3 Identity
Class is also can be used to achieve user defined data types. 4.7
Data Types
byte 0 1 byte
short 0 2 byte
int 0 4 byte
long 0L 8 byte
4.8 Variable
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 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
6 USEFUL KEYWORDS
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.
6.2.3 block
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
7.1.1 Concrete class
7.2 Constructor
Based on creating objects in Java constructor are classified in two types. They are
In a class we can take any number of static block but all these static block will
be execute from top to bottom.
JAVA
8.1 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.
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.
8.4 Interface
8.5 Abstraction
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.
8.6 Encapsulation
8.7 Polymorphism
8.7.1 Polymorphism principal is divided into two sub principal they are:
9 JAVA ADVANCED
9.1 Package
9.3 Thread
9.5 Multithreading
✓ Add Records
✓ Display Records
✓ Update Records
✓ Delete Records
✓ Search Records
✓ Exit
10 CONCLUSION
Due to all above reasons and to bridge the gap between theory and
practical, our Engineering curriculum provides a practical training of 1
month . 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.