A deprecated API is one that is no longer recommended to use. That’s due to changes in the API. While deprecated classes, methods, and fields are still implemented, they may be removed in future implementations. Hence you should not use them in new code, and if possible, rewrite the old code.