what is the difference between equals method and ==
Answer Posted / suganthi
equals method will compare two strings where two strings are
equal or not but == method will compare reference variables.
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is the benefit of using enum to declare a constant?
Why java does not support pointers?
You're given a Boolean 2D matrix, can you find the number of islands?
What is the meaning of flag day?
How list contains works in java?
What is the use of default method in interface in java?
What is oop in java?
What is data type in computer?
What is the use of flag?
Explain try and catch keywords in java?
Explain serialization and deserialization in java?
What is the use of put method?
Is passing by reference faster?
What are the two parts of a conditional statement?
What is final variable?