it's not an error it's just a warning message stating that you are using an
obsolete (out of date) method in your program
if you are giving the following syntax to compile your program compiler will
let you know what are the obsolete methods you are using in your program.
javac -deprecation <source_file_name.java>