Erum Momin wrote:Can anyone please tell me what will the output of the following code... i cannot try this at my PC since i don't have java 6.0 on it.
You can have different version of Java on the one machine. Just make sure to update the paths before compilation/run so that the version you expect is used.
I'd recommend creating a couple of batch files/bash scripts to do this.
Was this from a book or mock exam? If so, please quote the source.