• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i mix classes compiled with diff versions of compiler ?

 
Geetha MK
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic