Hi friends, when we use a higher version, but want that our application run also on lower version of JDK also, then we use c:\>javac -target 1.3 hello.java here file name is hello.java and currently we are useing JDK1.5 and we want byte code of hello.java that is compatable to jdk1.3. This command does not run on jdk1.5 but this run on jdk1.4.
I want to know that -target option command runs or not on jdk1.5.
JDK 1.4 --- assert is NOT a keyword until you compile it against -source 1.4 option.
JDK 1.5 --- assert IS a keyword by default. If you want to use assert as a variable name (which you should not) compile it against -source 1.3 option. (It will show you warning though)