what is the difference between equals method and ==
Answer Posted / upendar
== checks wheather two strings are pointing to same location
or not.
equals method checks wheather the strings are same or not
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Which is bigger float or double java?
Can a static member function access member variable of an object?
What is stringwriter?
Why is it important to initialize a variable?
Tell us something about different types of casting?
What is difference between filereader and bufferedreader?
What is difference between null and void?
What are bind parameters?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Is array primitive data type in java?
Is finalize() similar to a destructor?
What is variable length arguments in java?
What are accessor methods in java?
Can main() method in java can return any data?
What are the advantages of java?