aspose file tools*
The moose likes Beginning Java and the fly likes A General question - Pls help !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "A General question - Pls help !!" Watch "A General question - Pls help !!" New topic
Author

A General question - Pls help !!

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hello all,
I have a certain question which has been haunting me for quite some time.
We all are aware that Java comes up with a new version every now and then.
And in each new version, new API's are added, Code is optimized for performance & certain existing Bugs are fixed. Thus in general it is better to use a newer ( and probably more stable) version of Java than the Old one.
I have a couple of questions on this:
1. If i develop some code (say a servlet) using a new java version and later deploy the class files to a server ( running Tomcat or someother) which has an older version of Java installed (assuming that there are no new APIs used in my code). Which version of java will finally be used for my code execution? Obviously it should be the version installed on the server. In this case wouldnt my java servlet code still be performing bad since it is using the Old java version to execute though the class files are generated using the New java version.
2. If i develop some code (say a servlet) using an old java version and later deploy the class files to a server ( running Tomcat or someother) which has a new version of Java installed. Which version of java will finally be used for my code execution?
Please give these questions some careful thought and let me know the answers.
Thanks,
Sajee Joseph
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
1. Yes.
2. The newer, likely faster version.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A General question - Pls help !!