You are on page 1of 37

ARYA INSTITUTE OF ENGG.

TECHNOLOGY & MANAGEMENT

A
SEMINAR REPORT
On
CORE JAVA
Submitted
In partial fulfillment
For the award of the Degree of
Bachelor of Technology
In
Computer Science Engineering

SUBMITTED TO – SUBMITTED BY -
MR. SANJAY TIWARI Udit Gahlot
MR. Arpit Kumar Sharma B.TECH VII SEM CS
 Technology- Core java

 Role- Developer
 What is Java ?
 Where is Java used ?
 Features of Java
 Java Virtual Machine
 Data type
 OOPs concept
 Class
 object
 Inheritance
 Polymorphism
 Abstraction
 Encapsulation
 Java is Object Oriented Programming language
as well as Platform.

 Java was developed by a team led by James


Gosling at Sun Microsystems.

 Java is a first programming language which


provide the concept of writing programs that
can be executed using the web.
According to the Sun , 3 billion devices run
java.There are many devices where Java is
currently used.
Desktop Applications -Acrobat reader, Media
player, Antiviruses etc.
Web Applications-irctc.co.in , javatpoint.com etc.
Enterprise Application –Banking Application,
Business Application.
Mobile.
o Java is Simple.
o Java is Object Oriented
o Java is Distributed
o Java is Architecture Neutral
o Java is Robust
o Java is Interpreted and Compiled
o Java is Secure
o Java is Portable
o Java is Multi-Threaded
 Java virtual machine is the like usual computer
which translate high level language into machine
language.

 Just like that Java virtual machine also translate


Byte code into machine language.

 JVM are available for many hardware and software


Platform
Two Types Of Data Types

1. Primitive types.

2. Non Primitives.
 Primitives are one which are initialized with one
value at one time.

 Int, long, Short, Float, Double, Char, Boolean, Byte


 Int-> Stores Integer values. Example : 1,2,3
 Short-> Stores small integer values.
 Long-> Long integer Values.
 Float-> Decimal Values. Example 1.2
 Double-> Long Decimal values. Example 0.9999
 Char-> Stores a character. Example: a,b,c
 Boolean-> Stores true or false.
 Byte-> stores memory bytes.
----------------------------------------------------------

 They all are initialized to zero by default.

 Boolean Values are initialize to false value always.


 Also Known as Reference types.

 Classes specify the types of objects.

 Program uses variables of reference type to point at


the location of objects
 Byte->Byte data type is an 8-bit signed two's
complement integer.

 Default 0.

 Byte data type is used to save space in large arrays,


mainly in place of integers, since a byte is four
times smaller than an int
 Object-oriented programming is a method of
implementation.
 A language in which everything represent in the
form of Object is called Object Oriented
Programming Language.
 It not only makes the program less complex but also
makes the software reuse feasible and possible.
 Java is not truly Object Oriented Programing
Language
A class is an entity that determines how an object
will behave and what the object will contain. In
other words, it is a blueprint or a set of instruction
to build a specific type of object.

Syntax
class <class_name>
{ field;
method;
}
 An object is nothing but a self-contained component
which consists of methods and properties to make a
particular type of data useful. Object determines the
behavior of the class. When you send a message to
an object, you are asking the object to invoke or
execute one of its methods.
 From a programming point of view, an object can be
a data structure, a variable or a function. It has a
memory location allocated. The object is designed
as class
o One of the most effective features of
Oop’sparadigm.
o Establish a link/connectivity between 2 or more
classes.
o Permits sharing and accessing properties from one
to another class.
o to establish this relation Java uses
‘extends’keyword.
 Single Inheritance

 Multilevel Inheritance

 Hierarchical Inheritance
 A structure having one and only one parent as well
as child class.

 Child class is authorized to access the property of


Parent class.
o Standard structure of Single Inheritance having one
Parent, one or more intermediate and one child
classes.

o Child class as well as intermediate class may access


the properties of upper level classes.
 A structure having one parent and more child class.

 Child classes must be connected with only Parent


class
 It is the ability of an object to take on many forms .
In java language, polymorphism is essentially
considered into two versions.
 Compile time polymorphism (method overloading/
static binding )
 Runtime polymorphism (method overriding/
dynamic binding )
This is used to write the program in such a way, that
flow of control is decided in compile time itself. It is
achieved using method. overloading(implicitly).In
method overloading, an object can have two or more
methods with same name but with their method
parameters different. These parameters may be
different on two bases:
Parameter type
Parameter count
 Abstraction means hiding the implementation
details and showing only the functionality.

 Abstractions the process of abstraction in Javais


used to hide certain details and only show the
essential features of the object
 Abstract keyword is used to declare the
method or class as abstract.
 You have to place the abstract keyword before
the method or class name in the method
declaration.
 An abstract method contains a method
signature, but no method body.
 Instead of curly braces an abstract method will
have a semi colon ( ; ) at the end.
 Encapsulation is the technique of making the fields
in a class private and providing access to the fields
via public methods.

 Encapsulation also can be described as a protective


barrier that prevents the code and data being
randomly accessed by other code defined outside
the class.
o To hide the internal implementation details of the
class
o Can safely modified the implementation without
worrying breaking the existing code that uses the
class
o Protect class against accidental/ willful stupidity
o Keeps class tidy by keeping the visible fields to a
minimum
o Easier to use and understand
 Combining data and how it's manipulated in one place :
This is achieved through the state (the private fields)
and the behaviors (the public methods) of an object.
 Only allowing the state of an object to be accessed and
modified through behaviors: The values contained
within an object's state can then be strictly controlled.
 Hiding the details of how the object works: The only
part of the object that is accessible to the outside world
is its behaviors. What happens inside those behaviors
and how the state is stored is hidden from view
1. The main benefit of encapsulation is the ability to
modify our implemented code without breaking the
code of others who use our code.

2. With this feature Encapsulation gives


maintainability, flexibility and extensibility to the
code
 The fields of a class can be made read-only or write-
only

 A class can have total control over what is stored in


its fields

 The users of a class do not know how the class


stores its data.

 A class can change the data type of a fields, and a


users of the class do not need to change any of their
code
We have explored the practicality of doing parallel
computing in Java, and of providing Java interfaces to
High Performance Computing software. Java sits on a
virtual machine model significantly different to the
hardware-oriented model that C or Fortran exploit
directly. Java discourages or prevents direct access to
the some of the fundamental resources of the
underlying hardware . Read more on Brainly.in -
https://brainly.in/question/1757383#readmore

You might also like