Solved

from JDK 1.0.2 to JDK 1.1.5 ...

Posted on 1998-02-04
2
395 Views
Last Modified: 2013-11-23
I have used JDK 1.0.2 long time ago, and all my programs (applets and applicationts) were made with this version of JDK, but if I change to JDK 1.1.5 could my programs still work ?.
I need to know advantages and disadvantages of the change.
Would be this favourable or not ?.

   Thanks a lot.
0
Comment
Question by:Deladier
2 Comments
 

Expert Comment

by:scousins020498
ID: 1232842
The obvious disadvantage of using a newer version is that it will not be supported on all browsers.
As far as compatability is concerned, the code should move happily, although you will be given warnings about any functions that have been deprecated (about to be obsolete!).  The documentation will give you the new method description that you should use instead.
The other main consideration is the event model.
From 1.1 onward, there is a new (better?) event model that you could learn.
However, the old event model is still fully supported (as at 1.1.4), and will work perfectly well - but you cannot mix the old model and the new in the same application - this should not be an immediate problem in your case.

It is never a bad idea, in my opinion, to move forward, particularly in a relatively young field as Java.

Happy conversion!

0
 
LVL 2

Accepted Solution

by:
shogi earned 0 total points
ID: 1232843
FOR APPLET
  Do I have to support many browser (Internet) or just one browser (Intranet (open or not))? Did the browser surport Java 1.1 if you have to support 1 browser.  When I want to put my new version on the WEB?

ANSWER FOR APPLET
First, if you have to support many browser and soon as possible my recommandation is : stay with the JAVA 1.0.2. Because many browser do not support JAVA 1.1.

Netscape 4 is 100% Java 1.1, and IE 4 (you don't have RMI and few others stuff of JAVA 1.1)

If you have to support just Netscape 4 or IE 4 (with using RMI), If recommand you to translate your application.  You will take advantage of many new tools (class).  If it's this option you will take... you will need a new JDK1.1.5 or IDE support Java 1.1, like you know.  

  Java 1.1 support directly you application 1.0.2, if you don't use any Java 1.1 new feature.  You can add new stuff, but just what is supported by Java 1.0.2.

Java 1.1 support Java 1.0.2 event, but I recommend you to translate in the new event mode (Advantage : more event) (disadvantage: you have to rewrite your event, but it's not to hard)

If you want to use new feature of Java 1.1 you need to translate all you program to be Java 1.1 compliant.

If you translate yours programs, Take a look to sun web :
http://www.javasoft.com:80/products/jdk/1.1/docs/guide/awt/HowToUpgrade.html



APPLICATION
  My recommandation for application is go in Java 1.1.  Only one disadvantage is you have to change your event and few thinks.  But you have many advantage.  Like JNI (java Native Interface) allows you to call DLL write in C and C++, in the native environment, many new class like Reflexion is very powerfull, and the possibility to have Native compiler more strong and powerfull.


0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now