where is .equals() method and how is it different from ==
operation <giving some confusing implementation> Is hashing
related to these?
Answer Posted / tanuj
== operator return true if both reference variable pointing
to same object.
equals() method also use == as default, but String and
Wrapper classes override (you can also override) it but
meaningfull comparison , as in two same String case it
returns true for equals()method.
for knowing it clearly make small programs by using both.
there are so many exception in wrapper classes.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Is sizeof a preprocessor?
What is internal iteration in java se 8?
What is the difference between static class and normal class?
How does remove work in java?
Which types of exceptions are caught at compile time?
Is java se free?
What is void in java?
Is vector thread safe in java?
What is the name of the java compiler?
what is mena by object block any what is the use of that
What are the basic concepts of OOPS in java?
What does null mean in java?
Which is better ascii or unicode?
Can you inherit a constructor java?
What do you mean by mnemonics?