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
Is treeset sorted in java?
How can we create an immutable class in java?
What is bytecode in java ?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
How do you remove duplicates from an array in java?
State one difference between a template class and class template.
What does 0 mean in boolean?
What is the difference between pass by reference and pass by pointer?
What is string builder in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
What is fail fast in java?
What is the transient keyword?
What are methods and how are they defined?
what is enumset?
Which collection is sorted in java?