This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Core Java for the Impatient  RSS feed

 
Harsha Lingareddy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Author , how is this book different from other core java books ??
 
Cay Horstmann
author
Ranch Hand
Posts: 195
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The principal difference is that it takes a fresh look and teaches you how to best work with the tools that Java 8 has to offer.

Where another book would say "A very long time ago, we used to do it this way, and then a little while later that way, and eventually a third way, and then Java 8 came along, and here is the good way", I start out with "Here is the good way".

Also, I just had a peek at another Java book, and I was surprised how inaccurate it was. For example, it merrily tells you that a String is a sequence of Unicode characters, and that each character fits into 16 bits. That was true in 1995, but nowadays Unicode is a 21-bit code, and you need to know a bit about the UTF-16 encoding to work with Java strings. I tell you that kind of stuff.

Hope that helps,

Cay
 
Campbell Ritchie
Marshal
Posts: 55681
162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it does. Does that include what \uxxxx escape to use to get Unicode characters with a value > 0xffff?
 
Cay Horstmann
author
Ranch Hand
Posts: 195
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, I explain that. More usefully, I tell you how to avoid the heartache, by using



Then you get the code points, not the variable-length encoding.

Cheers,

Cay
 
Campbell Ritchie
Marshal
Posts: 55681
162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. Maybe I should get your book after all
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!