What is difference between “==” and equals()?
“==”: It compares references (memory locations). It does not compares values in the memory location. Hence it is not recommended to find the equality of two objects. It is mostly used to compare primitive types.
equals(): It is used to find the equality of two objects. It actually compares with the values that an object contains.
| Is This Answer Correct ? | 5 Yes | 0 No |
What are Normalization Rules? Define Normalization?
What is OOP Language?
Why you should not use singleton?
What is a java predicate?
What is an example of declaration?
Is vector synchronized in java?
How u dubugg ur project?
How many bits are in a sentence?
i need to know the site which compiles and run the java program completely in online... thank you for your reply in advance
How are the elements of a gridbaglayout organized in java programming?
can we access the method of class without creating the object of the class
Explain the features of java?