When we compile a java class file, the java compiler generates a class file in
byte code (numbers representing instructions). When javap tool is executed
with -c option these numbers will be converted as instructions like getstatic,
As part of the Object class we have an implementation oftoString(),
Apart from implementinghashCode we need to implementequals() \u2013
returns true if your objects are considered to be equal.
Even thoughequals was implemented as part of object class this may not
satisfy our requirements. In such a case we need to overrideequals().
Most of the programmers debug their applications by including the
statements that displays the information about the object. It is always
advisable to providetoString() that returns the info about the object.
Its our responsibility to return useful info fromtoString() method.
This action might not be possible to undo. Are you sure you want to continue?