Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

On which Version of Tiger is the codes in "Just Java" based on?  RSS feed

 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's kind of common problem with the books, which are published before the official release of a product is done.

Peter, are the codes in "Just Java" based on beta 2 release of J2SE 5.0? Will they be compatible with the final release of J2SE 5.0... ASAIK, all source codes are not available to download yet... Or will they be revised first,according to the release of J2SE 5.0 and exposed to the readers later?

Thanks...
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have indication of major changes between the beta and production release of Tiger which may affect basic code as expected in an introductory text?

I'd not think the language syntax or core APIs would change during the latter stages of the development program.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeroen Wenting:
Do you have indication of major changes between the beta and production release of Tiger which may affect basic code as expected in an introductory text?

I'd not think the language syntax or core APIs would change during the latter stages of the development program.


I did face that kind of problem in Java in General(Intermediate) forum... One guy asked why his codes cannot be compiled... I didn't know the reason too... But one expert(Jeff Langr, if I am not wrong) corrected the code to be compatible with the beta 2 release... The old codes are based on Beta 1 release of Tiger...

That's why I raised this kind of question to Peter..
 
Peter van der Linden
author
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ko Ko,

I wrote some early chapters based on Java 5 version Beta 1.
As soon as Beta 2 came out, I switched to that. I recompiled and
retested all the code examples, and I think I got almost everything that
changed.

There was just one API change that I did not find in time; it had to
do with getting a Scanner object (old way: use a factory method;
new way: just use a constructor). I put that in the errata sheet which
I maintain at http://afu.com/jj6
And it has been corrected in the second printing, which is the one flowing
into stores now (Yes! A second printing already!)

As far as I know there have been zero API changes between Beta2 and FCS.
But if anyone does find something, I would love to hear about it.

Cheers,

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