Introduction To Java

Home   »    Java   »    Introduction To Java


All the Previous Languages are Structured or we can say that they were procedural programming means in them processing is to be done in sequence manner and These are also called the Top down or either they were bottom up Languages Most Important things those must be in the Languages are Reliability, Maintainability and Reusability and user Friendly So For Achieving these things they Developed java.

Java is a purely OOP language that is developed by Sun Microsoft in 1991 and this is very popular in 1992 with named called as Oak and in 1992 java was very popular in Electrical things At that time java was used for making VCR's' and Television and handheld Devices But in 1993 java was so popular and that time Scientists think that this will be the very popular in Internet for transferring Files from remote computer to local. Java is called as Purely OOP Language because Every Program of java is written into in classes

Contents




Basic Concepts of Object-oriented Programming

A Language called as OOP Language if it supports all the Features of the OOP Language For Understanding OOPs first you have to understand few concepts

Object
An Object is a Real Word Thing Which performs a Specific Task and which has a set of Properties and Methods. Properties of Object are Also Called as Attributes of an Object and Method is also Known as the Function of the Object Like What an Object can do For Example A Car is an Object which has a Certain Number of Properties Like Color, Model No, Average etc and a Function Known as Run When A User gives Some Race then the Car Will be Moved.

Class
A Class is that which contains the set of properties and Methods of an object in a single unit Like Animals is name of class which contains all the Properties and Methods of an Object of another Animals So if we wants to access any data from the Class then first we have to create the Object of a class Then we can use any data and method from class

Data Abstraction
Data Abstraction is that in which A User Can use any of the data and Method from the Class Without knowing about how this is created So in other words we can say that A user can use all the Functions without Knowing about its detail For Example When a User gives Race to Car The Car will be Moved but a User doesn't know how its Engine Will Work.

Inheritance
Inheritance is very popular Concept in OOP This provides the Capability to a user to use the Predefined Code or the code that is not created by the user himself but if he may wants to use that code then he can use that code This is Called Inheritance but Always Remember in Inheritance a user only using the code but he will not be able to change the code that is previously created he can only use that code.

Data Encapsulation
Data Encapsulation is also Known as Data Hiding as we know with the inheritance concept of Opps a user can use any code that is previously created but if a user wants to use that code then it is must that previously code must be Public as the name suggests public means for other peoples but if a code is Private then it will be known as Encapsulate and user will not be able to use that code So With the help of OPPS we can alter or change the code means we can make the Code as Private or public This allows us to make our code either as public or private.

Polymorphism
Poly Means many and morphism means many function The Concepts Introduces in the form of Many behaviors of an object Like an Operator + is used for Addition of Two Numbers and + is also used for Joining two names The Polymorphism in java Introduces in the Form of Functions Overloading and in the Form of Constructor Overloading.

Dynamic Binding
Binding is used when we call the Code of the Procedure in Binding all the Code that is Linked with the single procedure is Called When a Call is Made to that Procedure Then the Compiler will found the Entire code of the Single Procedure if A Compiler will Fond all the Code of Single Procedure in Compile Time then it is Called as the Early Binding Because Compiler Knows about the code at the time of Compilation but in the Late Binding Compiler will understand all the Code at Run Time or at the Time of the Execution.

Message Communication
Message Communication is occurred when an object passes the Call to Method of Class for Execution We Know for executing any method from the class First we have to create the object of class when an object passes References to function of class then In Message Communication First of all we have to Create the Object of the Class the we make Communication between the Object and the Methods of the Class.

Benefits of OOP

OOP is used in Several Places The Features of the OOPS include.

  1. Inheritance - We know that OOPS Provide Inheritance with the Help of the Inheritance The Code that is Previously Code is used in many Places where we wants By using the Inheritance We can Create our Programs by using pre-defined code.
  2. In Java All the Code in the java is written into the Classes So that it is called as Purely Languages.
  3. In the Java Classes we can create many Objects.
  4. Java Provide both types of Environments Like CUI and Also GUI.
  5. Java is both Compiled and Interpreter Languages.
  6. Java is Most Popular on the Internet Because after Compilation the Code of java is First Converted into the Bytecode Then after Interpreter ByteCode is Trensfered into the Machine Code.

Applications of OOP

There is great excitement among software engineers in using OOP. In many years, applications of OOP are gaining importance because it can simplify a complex problem. Some of application of OOP includes:

  1. Real-time Systems
  2. Simulation and modelling
  3. Hypertext, hypermedia and expertext
  4. AI and expert systems
  5. Neural Networks and parallel programming
  6. Decision Support System
  7. Office Automation System
  8. CAM/CAE/CAD system

The richness of OOP environment enables the software industry to improve not only the quality of software system but also its productivity.





<< Previous Topic
Next Topic >>


2 comments: