File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes can i mix classes compiled with diff versions of compiler ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can i mix classes compiled with diff versions of compiler ?" Watch "can i mix classes compiled with diff versions of compiler ?" New topic
Author

can i mix classes compiled with diff versions of compiler ?

Geetha MK
Greenhorn

Joined: Jan 29, 2001
Posts: 4
hi,
can i import a class compiled with 1.1.7 compiler in my class which is compiled with jdk1.2 compiler ?
thanks
Matthew Jones
Ranch Hand

Joined: Dec 21, 2000
Posts: 68
I would think so.
Bytecode is bytecode, differnet compliers may be better at optimizing or whatever, but bytecode should pretty much be the same, or you would have to have a different version of the JVM to run it.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
This will work as long as the environment in which you are trying to mix these classes supports the more recent version of Java.
[This message has been edited by Bodie Minster (edited January 29, 2001).]
elavazhagan selvaraj
Greenhorn

Joined: Jan 23, 2001
Posts: 5
HI,
It is one of the advantage of the Java & using various classes compiled by various versions of jdk can be used.Remember Java supports all the previous features...which are all removed in the later version for better compatiability.
Moreover, java is written once run anywhere.
regards,
elavazhagan

Elavazhagan Selvaraj<BR>elavazhagan@rediffmail.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can i mix classes compiled with diff versions of compiler ?