Can I use JDK 1.7 to compile the code written in JDK 1.6? Is Java strict downward compatible?
Do I need to keep JDK 1.6 and JDK 1.7 together in the same machine?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.
If the cross-compilation options are specified when compiling. Those are most notably:
-source-target-bootclasspath– which requires anrt.jarof the JRE (not JDK) being targeted