What is the difference between Java 1 and Java 2

mhan80

Member
Dec 18, 2000
85
0
0
I have this Java 1 book but is it outdated. Is Java 2 that much advanced. If i learn Java 1 can I learn Java 2. Is the syntax the same and the structure and is Java 2 just more classes
 
 

michaelh20

Senior member
Sep 4, 2000
482
0
0
As far as I know, Java 2 is more classes, plus a better way of creating GUI type interfaces (so perhaps the GUI part of java 1 will be outdated if you learn that), but otherwise the programming language is still at core the same AFAIK
 

javathehut

Senior member
Oct 23, 2000
318
0
0
In Java 2(JDK 1.2), Sun starting using the Swing classes as their primary GUI source. Other than that, the real difference is the methods that are deprecated. There are a lot of methods that you can use in Java 1 that will create deprecation warnings when you run them in Java 2. For example, the Thread.stop() method is deprecated and not used anymore in Java 2. It is better to be up to date with the methods so that you avoid using these deprecated methods.