What is the difference between a == b and a.equals(b) ?

a == b means comparision between two variables.

a.equals(b) means comparision between two objects.

...S.VinothkumaR.

No comments: