Hey Everyone,
Right now I’ve got Java 1.5 SDK on my computer. I wanted to compile for 1.3, so I did this:
javac -source 1.3 -target 1.3 *.java
It successfully compiled without giving any errors.
However, the program didn’t run. Why?
Because I called the String.contains(String) method, which wasn’t introduced until 1.4.
Why doesn’t it catch this?
Thanks.