• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

On again off again java student question?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic