Monday 26 October 2015

How to compile Java program version specific?

Compile program Java version specific

To compile program in a specific Java version, use -source option

Example
javac -source 1.3 Demo.java

javac -source 1.4 Demo.java

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...