Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

can i mix classes compiled with diff versions of compiler ?

 
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
 
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.
 
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).]
 
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
    Bookmark Topic Watch Topic
  • New Topic