-deprecation is a command line option to javac, not java.
javac is the compiler that compiles java source into classes, java is
the virtual machine that can run the generated classes.
btw. if you're in school or are following a computer related course,
which one and where are you attending, just curious.
Also, do people know the concept of thank you?