Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Core java - Interview Questions and Answers for 'Sabre' - 4 question(s) found - Order By Newest | ||||
| ||||
| Ans. A Class must override the hashCode method if its overriding the equals method. | ||||
| ||||
| Ans. No, results in exception. | ||||
| ||||
| Ans. We cannot explicitly initiate destruction of an object as no destroy method is available in java. Only Garbage collection can destroy an object. | ||||
| ||||
| Ans. When it is no longer referenced or it looses all references which were earlier pointing to it. | ||||