what is the difference between equals method and ==
Answer Posted / devarathnam c,kotagudibanda(po
Hi...
"equals()" method always compares the content of an
object,but "==" operator compares the memory locations
(references).
eg: String s1="KOTAGUDIBANDA";
Where "s1" is a reference and "KOTAGUDIBANDA"is a content.
Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Which package is always imported by default?
What is the difference between post and put?
How many characters is 2 bytes?
What is difference between static variable and global variable?
what is singleton in java?
What the difference is between execute, execute Query, execute Update?
Can a main method be overloaded?
Describe the process as to how substring() methodology mechanisms in java.
What are abstract methods in java?
Are strings immutable in java?
What is loop in java?
Is 9 a prime number?
Explain treeset?
What are the 4 versions of java?
What are the parts of methodology?