Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Complete Java J2EE Questions

Complete Java J2EE Questions

Ratings: (0)|Views: 16|Likes:
Published by asvperumal

More info:

Published by: asvperumal on Jun 14, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/23/2014

pdf

text

original

 
 
1 of 204
JAVA
 
Abstraction:
Showing the essential and hiding the non-Essential is known as Abstraction.
 
Encapsulation
: The Wrapping up of data and functions into asingle unit is known as Encapsulation.
Encapsulation
is the term given to the process of hiding theimplementation details of the object. Once an object isencapsulated, its implementation details are not immediatelyaccessible any more. Instead they are packaged and are onlyindirectly accessed via the reference of the object.
 
Inheritance
: is the Process by which the
Obj 
of one classacquires the properties of 
Obj’s
another Class.A reference variable of a Super Class can be assign to anySub class derived from the Super class.
Inheritance
is the method of creating the new class based onalready existing class, the new class derived is called Sub classwhich has all the features of existing class and its own, i.e subclass.
Adv:
Reusability of code , accessibility of variables andmethods of the Base class by the Derived class.
 
Polymorphism
: The ability to take more that one form, itsupports Method Overloading & Method Overriding.
 
Method overloading
: When a method in a class having the
same method name
with
different arguments
(diff Parameters or Signatures) is said to be Method Overloading.This is
Compile time
Polymorphism.Using one identifier to refer to multiple items in the samescope.
 
Method Overriding
: When a method in a Class having
same method name
with
same arguments
is said to beMethod overriding. This is
Run time
Polymorphism.Providing a different implementation of a method in asubclass of the class that originally defined the method.1.
 
In
Over loading
there is a relationship between themethods available in the same class, where as in
Over riding
 
there is relationship between the Super classmethod and Sub class method.
 
 
2 of 204
2.
 
Overloading
 
does not block the Inheritance from theSuper class , Where as in
Overriding
blocks Inheritancefrom the Super Class.3.
 
In
Overloading
separate methods share the same name,where as in
Overriding
Sub class method replaces theSuper Class.4.
 
Overloading
must have different method Signatures ,Signatures.
 
Dynamic dispatch:
 
is a mechanism by which a call toOverridden function is resolved at runtime rather than atCompile time , and this is how Java implements Run timePolymorphism.
 
Dynamic Binding
: Means the code associated with the givenprocedure call is not known until the time of call the call at runtime. (it is associated with Inheritance & Polymorphism).
 
Bite code
: Is a optimized set of instructions designed to beexecuted by Java-run time system, which is called the JavaVirtual machine (JVM), i.e. in its standard form, the JVM is anInterpreter for byte code.
JIT
- is a compiler for Byte code, The JIT-Complier is part of the JVM, it complies byte code into executable code in realtime, piece-by-piece on demand basis.
Final classes:
String, Integer , Color, Math
Abstract class:
Generic servlet, Number class
 
variable:
An item of data named by an identifier. Eachvariable has a type,such as int or Object, and a scope
 
class variable
: A data item associated with a particularclass as a whole--not with particular instances of the class.Class variables are defined in class definitions. Also called astatic field. See also instance variable.
 
instance variable
: Any item of data that is associated witha particular object. Each instance of a class has its own copyof the instance variables defined in the class. Also called afield. See also class variable.
 
local variable
: A data item known within a block, butinaccessible to code outside the block. For example, any

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->