Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Java Programming Made Notes

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Java programming

Java is an object oriented programming language


The java deals with the objects
Object oriented programming is frequently referred to as a new programming
paradigm.
Paradigm is meant as model
The real time example to explain the opps concept of what really meant by the
oops .
I wish to send a flower to my friend sally. But his home was many miles from
my home so, It is impossible for me to pick the flower and go to sally home and
present the flower.
So, the easy task is to go to the local florist and ask him to pack
the required quantity of flower and give him the sally address so that the
delivery will be done automatically.
agent and the community.
The problem get solved by finding the appropriate agent.in the above case
flora where I have sent the message which contain my request. its the flora
responsibility satisfy the request.
The flora has to satisfy my request where I don’t need any information how it
is done .the process or we call it has the algorithm is hidden from my
inspection the only thing I want is to satisfy my request.

If I investigate I got to know that the flora has send the message request to
flower arrangement .
The flowe arrangement then send the message to the delivery boy
Earlier the florist has obtained the flower form the wholesaler he send a
different message
The wholesaler has to send the message to the flower grower
Flower grower has to manage gardeners where he need to send different
message to his team

Note:-The important thing we notice from the above


whole process that the solution to my problem has
become easier only with the help of many individuals
With out their help my problem will not become easier
An object oriented programming is structured as community of interacting the
agents called object
Each object has a role to play.
Each object provide a service
Each object perform a task/action.
Message
There are some prniciapls of information hjiding in regard to the message
passing
1.The client need not to knoe the actual means of the request.
2.The second prinicipal is to see whether some body will help us to make our
work easier

NOTE:- The programmer will generally write every thing not to use the
service of others

**The important part of the object oriented programming is


to development of reusable components
**Information hiding is the important part of programing in
conventional languages
There are two major differences between the opps and
procedure
1. The first is that in a message there I a designated
receiver for that message .
a. Receiver is an object to which the message is send
1.The procedure language did’t have an designated receiver
2. the second is that interpretation of the message.
(interpreatation of the message is to methos to
repond to the messages).it is dependent on the
receiver and it can vary on the different receiver.

Responsibilities
The fundamental concept of the oop is to describe the
behaviour in terms of the responsibilities.
In terms of sloving my problemI(flower to my friend )in terms
of responsibilities whrere the we increase the level of
abstraction .this will increase the greater independent (using
the free pusure any technique that desired the desired
objective)between the objects and solving the different
complex problems.
The entire collection of responsibilities associated with an
object is often described by the terms of the protocol.
The actual syllabus of the exam
Java buzz words/features :-
1)simple:-java is inherits all the best features of the
programming languages like the c and c++.so It will be
easy to learn who know certain language.
a. The concept of java was not developed by the
java but it was adopted by the java team.
b.programming notation of the java is not different
from the programming languages like c and c++ which
makes the developers have little trouble to learn.

2)secure:-
i) the source code will not directly instruct the
machine instead the JVM(Java virtual
machine)which reads only the(Byte code) and
coverts the bytecode in to machine instruction .
ii) The illegal acesss of the system will not be
allowed by the (JVM).allowing only the java
program to execute the java fully secure.
3)Portable:-the java o portable because we can run the
program on any platform.
There is no dependency on the hardware or the operating
system(software).
4)oop:-oops is influence from the previous successors
programming languages languages like c and c++.
The programmers not only looked for the features but they
are looked for the performance wise then they added the
concepts which can increase the performance.
The concepts of the oop are :-
I. Encapsulation
II. Polymorphism
III. inheritance
5)ROBUST:- the features that make it robust are:-
I. platform independent
II. oop
III. memory management
IV. exception handling
 platform independent:- where we can write the
java code in any operating system and we can run
on any operating system
 oops:-helps to break the complex code in to the
easy to understand objects and manage high
complexity programs and not code machine
dependent coding.
 Memory management:-in traditional programming
languages like c,c++ the user has to manage the
memory by allocating and deallocating memory
which leads to the leaks in the program ,but in java
memory management is taken care by the jvm .the
allocation and the clean of the memory is done
automatically
 Exception handling:-The java programmers are
forced to handle the exception during the
development time and all the possible errors are
encountered during the compilation program.this
way when the exception happens during the run
time there is proper exception handling mechanism
already coded in the program.

You might also like