• Post Reply Bookmark Topic Watch Topic
  • New Topic

On again off again java student question?  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been an on again off again Java student for a few years now. Just as I'd start learning the language something would get in the way. I have some more free time now, so I thought I'd give it another shot. I'm currantly reading HFJ, and will then probably move on to Begining Java 2. My copy of HFJ is a first edition and covers JDK 1.4, and my copy of Beginning Java 2 covers JDK 1.3. I'm using JDK 1.5. Am I safe in assuming that any program that compiled under 1.3 should still compile under 1.5. I realize that the reverse would not be true. I haven't had any problems with the code in HFJ, but I'm wondering about the other books code as its basically 2 JDKs old.
 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you are doing basic programs at this time most probably all your programs of JDK1.3 will compile under JDK1.5. Don't assume all programs to work as I myself ahve faced a samll problem. But as I said you are going to do basic programs right now so you can assume considerable amount of safety.
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bob,
It will compile in 1.5, but will give your warnings. There are many things in 1.5 that are discouraged.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Bob,
It will compile in 1.5, but will give your warnings. There are many things in 1.5 that are discouraged.


In particular, most of the warnings will involve Collections or other classes that have been updated to use the new generics feature in Java 1.5. You'll eventually want to learn about generics, but until then you can safely ignore these warnings. Your programs should still run.

Layne
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!