![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
Chapter II: Operators & Assignments
|
|
2.1 Types Of Operators
|
|
|
2.3) Bitwise operations on integers |
|
2.4) "+ " operator on Strings |
|
2.5) Comparision operator (==) applied on objects/ equals() method
a="Hello" b="Hello" (a= =b) // this is true
Ex : Long a1= new Long (100); Long a2= new Long (100); Long a3=a1 // a3,a1 refer to same object now. boolean flag=(a1==a2)// false. flag=(a1==a3) // true. flag= a1.equals(a2)//true
public boolean equals(Object obj)
|
|
|
|
2.7)Primitives passedethods to m
|
|
|
|
|
|
|
|
|