javac source and target options usage
问题 When we use javac option: -source and -target how does the compiler "knows" the code to produce ? I mean how does any compiler knows the specification of any previous java release or I have to do some setting in order to provide it with some information about them ? 回答1: The javac program knows how to handle these arguments without you providing any extra information. Do note that there is a bit of a trap here, however: these options relate to the source syntax and the class file form and