Hi Kamran,
== is the coditional operator.It's basic function is to checks the two operands(one on it's left & one on it's right

) for equality.If they are equal then it prints true & vice versa.This opeartor is used in two cases.
1: With variables(Primitives)//As Valentin Crettaz mentioned
2: With reference variable(Non primitive)
Case:1 When used with simple variables i.e
primitives it checks the values present in variables.
Example:
Out Put will be
true Since here it matches the values presnt
in the variables a & b.
Case:2 When used with reference variables i.e
non primitive, it checks there references.
Example:
equals()[/B].It is very simple one 
It's function is to do a [b]deep matching.Deep matching means to match the
contents refer by refernce variable.
Bye.
Viki.
------------------
Count the flowers of ur garden,NOT the leafs which falls away!
[This message has been edited by Vikrama Sanjeeva (edited November 17, 2001).]