Showing the essential and hiding the non-Essential is known as Abstraction.
: The Wrapping up of data and functions into a single unit is known asEncapsulation.
is the term given to the process of hiding the implementation details of the object. Once an object is encapsulated, its implementation details are not immediatelyaccessible any more. Instead they are packaged and are only indirectly accessed via theinterface of the object.
: is the Process by which the
of one class acquires the properties of
another Class.A reference variable of a Super Class can be assign to any Sub class derived from theSuper class.
is the method of creating the new class based on already existing class ,the new class derived is called Sub class which has all the features of existing class and itsown, i.e sub class.Adv: Reusability of code , accessibility of variables and methods of the Base class by theDerived class.
: The ability to take more that one form, it supports Method Overloading & Method Overriding.
: When a method in a class having the
same method name
(diff Parameters or Signatures) is said to be Method Overloading. This is
Polymorphism.Using one identifier to refer to multiple items in the same scope.
: When a method in a Class having
same method name
is said to be Method overriding. This is
Polymorphism.Providing a different implementation of a method in a subclass of the class that originallydefined the method.1. In
there is a relationship between the methods available in the same class,where as in
there is relationship between the Super class method and Subclass method.2.
does not block the Inheritance from the Super class , Where as in
blocks Inheritance from the Super Class.3. In
separate methods share the same name, where as in
Subclass method replaces the Super Class.
must have different method Signatures , Where as
methodsmust have same Signatures.
is a mechanism by which a call to Overridden function is resolved atruntime rather than at Compile time , and this is how Java implements Run timePolymorphism.
Means the code associated with the given procedure call is not known untilthe time of call the call at run time. (it is associated with Inheritance & Polymorphism).
: Is a optimized set of instructions designed to be executed by Java-run time system,which is called the
Java Virtual machine
(JVM), i.e. in its standard form, the JVM is anInterpreter for byte code.
- is a compiler for Byte code, The JIT-Complier is part of the
, it complies byte codeinto executable code in real time, piece-by-piece on demand basis.Final classes : String, Integer , Color, MathAbstract class : Generic servlet, Number class
You have Downloaded this file from kamma-Sangam Yahoo Group