We know that it is necessary to implement all methods of an interface, if we want to make an object of that class. But why is it not necessary to implement both the methods
Because it is already overridden by java.lang.Object on every object you can create.
java.lang.Object