When using the Java compiler (javac
), we can specify two kinds of compatibility. One is using -source
and the other is using -target
. What is the difference between these two?
For example, -source 1.5
and -target 1.6
?
Also, is there any case where we use a different source and target compatibility level?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…