Search This Blog

Wednesday, 6 August 2014

                              OOPS Conecpt Of Java


Introduction:

     opps stand for "Object Oriented Programming System".OPPs is technique not technology,that means it does not provide any syntax or any predefined API for programing,it only provides the suggestion to design and develop objects in programming language.

Why OOPs?

      oops is methodology introduced to represents real world objects using a program for automating real world business by achiving security because business nedd security.
 All living and non-living things are callad object.so the real worls objects such as Person,Annimal,Bike,Computer etc.

Definition of OPPs:

OOP is methodology that provide a way od modulirizing program by creating partitioned memory area for both data and methods that can be used as template for creating copies od such module(Ojects on Demand)  

What is class?

  • A class is a specification or blue print or template of an object that defines what goes to make up particular sort of objects.
  • Thus a class is a logical construct,an object is physical reality.
  • A class defines the structure,state and behaviour that will be shares by a set of objects.Hence each object of a given class contains the structure,state and behaviour defined by the class.
  • When we create a class ,we'll specify the data and code that constitude that class.Collectively these elements are callad memebers of that class.specifically,the data defined by that class are referred to as member variables or instance variables or attributes.the code that operates on that data is reffered to as member methods. 
 

What is Object?

  • Object is the physical reality of a class.
  • Technically object can be defined as "it is an encapsulated form of all non-static variables and non-static methods of particular class".
  • An instance of a class is the other technical term of an object.
  • The process of creating objects out of a class is callad instantiontion.
  • Two objects can be communicated by passing message(argument)
     above diagram shows the meanning of the logicla construct and physically reality.

Tuesday, 5 August 2014

Why java is used today?
-->Java Programming language mainly used designed to develop internet based application by providing platform independency.C,C++ Programming language supports developing only stand alone application i.e. that application are excutedd only currunt machine,can not excuted from remote machine via network call.

Java Feature:
1>Simple: Because all the difficult conecpt of c,c++ have been omotted in java,for example pointer which is very difficult for both learners and also programmer has been compltly removed from elimented from java.
2>Secure: Java is secure because java not use pointer and another is java is run on the virtual machine that's why java is secure.
3>Robust: Robust means very strong.java applies the strong managment system and also java use automatic gerbadge collection and exception handling is used for type cheking purpose.
3>Portable: Java is Portable i.e we can .class file anywhere and run that .class file any machine.
4>Object Oriented:
Object-oriented means we organize our software as a combination of different types of objects that incorporates both data and behaviour.Object-oriented programming(OOPs) is a methodology that simplify software development and maintenance by providing some rules.Basic concepts of OOPs are:
  1. Object
  2. Class
  3. Inheritance
  4. Polymorphism
  5. Abstraction
  6. Encapsulation
5>Distributed:
        Information is distributed on various computers on network.Using java,we can write programms which capture information and distribute it to the client.This is possible because java can handla the protocols like TCP/IP and UDP.

6>Robust:
    Robust means strong java programms are strong java and they don,t crash easily like c or c++ program.there are two reason for this firstly,java has got excellent inbuild exception handling facility.If an exception occures,the program terminates abruptlygiving rise to problems like loss of data.Overcme such problem is callad exception handling.this means even though an exception occurs in a Java Program ,no harm will happen.