Search Interview Questions
| 3235 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Frequently asked. Favorite question in Walk in Drive of many Indian service companies.|
|Ans. 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.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve java oops object class Capgemini NIIT Technologies Virtusa Goldman Sachs PwC Citi Expeditors SoftFluent LinkedIn Amadeus Navteq PLC Systems Axtria Associate Netcracker Technology Altisource Epam basic   frequent|
Try 1 Question(s) Test
|Difference between == and .equals() ?|
|Which String class does not override the equals() and hashCode() methods, inheriting them directly from class Object?|
|What is the use of Object class ?|
|Can we override wait() or notify() methods?|
|How you can check Object is created or not in case of Singleton using Object class method ?|