Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Java Equals And Hashcode Tutorial
→
Java Equals And Hashcode Interview Questions in Java Equals And Hashcode Tutorial
→
What Are The Methods Of Object Class ?
1.
What Are The Methods Of Object Class ?
Answer»
clone() -
Creates and returns a copy of this object.
equals() -
Indicates whether some other object is "equal to" this one.
finalize() -
Called by the garbage collector on an object when garbage collection determines that there are no more
REFERENCES
to the object
getClass() -
Returns the
RUNTIME
class of an object.
hashCode() -
Returns a hash
CODE
VALUE
for the object.
toString() -
Returns a string representation of the object.
notify(), notifyAll(), and wait() -
Play a part in synchronizing the activities of independently running threads in a program.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
What Is Rule Regarding Overriding Equals And Hashcode Method ?
What Are The Methods Of Object Class ?
Why Is String Immutable In Java ?
What Is The Use Of Hashcode In Objects ?
Public Class A { Public Static Void Main(string Args[]){ Final String S1="job"; Final String S2="seeker"; String S3=s1.concat(s2); String S4="jobseeker"; System.out.println(s3==s4); // Output 1 System.out.println(s3.hashcode()==s4.hashcode()); Output 2 } } What Will Be The Output 1 And Output 2 ?
Why String Is Popular Hashmap Key In Java?
What Is The Use Of Hashcode In Java ?
There Are Two Objects A And B With Same Hashcode. I Am Inserting These Two Objects Inside A Hashmap. Hmap.put(a,a); Hmap.put(b,b); Where A.hashcode()==b.hashcode() Now Tell Me How Many Objects Will Be There Inside The Hashmap?
What Is The Difference Between "==" And Equals() Method In Java?
How Do You Avoid Nullpointerexception, While Comparing Two Strings In Java?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies