Question: What is deprecated?
What is mean by deprecated element, method or class?
What is deprecated?
Deprecated means condemned. A object or element, which is either changed or not approved. In Java if any method or class is showing a deprecated message that means it is either outdated or has been changed. You must look up for the new way of declaring it. But if you still want to use the old way of declaration then, declare the "@Depricated" before the method declaration.
Related Answer: Java making a method deprecated