what is difference between == and equals?
== is an operator. equals() is a method of Object class. == should be used during reference comparison. == checks if both references points to same location or not.