Show a description of each use or override of a deprecated member or class. Without -deprecation, javac shows a summary of the source files that use or override deprecated members or classes. -deprecation is shorthand for -Xlint:deprecation.
can you show us the code? You have used some deprecated methods or classes due to which the compiler is suggesting to compile with the deprecation option so that you can remove these deprecated usages. Deprecated code is the one that would be removed in the next release of JDK.
Then, with -Xlint:deprecation added to the compiler arguments, you get this message:
warning: [deprecation] Date(int,int,int) in java.sql.Date has been deprecated
preparedStatement.setDate(4, new java.sql.Date(2009, 12, 11));
Looking at the Javadocs for java.sql.Date, you can see that the constructor that takes a year/month/day has been deprecated. you should use the other constructor that takes a long value. And you can construct the long value using the Calendar class. Something like:
By the way, before you get caught up in the trap - your month value is 12. Months are zero-indexed in Java!