J
jimlee2004
I have a stupid but interesting question.
Let's say I have 3 java files. a.java, b.java. c.java and a calls b and
b calls c.
If I compile and run them, they works fine.
Assume I use java 1.2 to compile a.java
and then use java 1.5 to compiel b.java
and then use java 1.4 to compile c.java
and then put a.class and b.class and c.class together,
I was wondering if it still run?
In other words, If I collect a bunch of class that compiled from
differenet version of java.
is there any issue to run it? Why or why not?
Thanks,
Let's say I have 3 java files. a.java, b.java. c.java and a calls b and
b calls c.
If I compile and run them, they works fine.
Assume I use java 1.2 to compile a.java
and then use java 1.5 to compiel b.java
and then use java 1.4 to compile c.java
and then put a.class and b.class and c.class together,
I was wondering if it still run?
In other words, If I collect a bunch of class that compiled from
differenet version of java.
is there any issue to run it? Why or why not?
Thanks,