Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java in 24 Hours, Android app in the book, uniqueness of the book

 
margaret gillon
Ranch Hand
Posts: 335
6
Linux Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rogers,

I learned Linux from a Sams 24 hour book and enjoy the series. I have a couple questions about your new Java book.

1) I was interested that you decided to include writing an Andoird app as part of the book. Is Java 8 more Android friendly than previous Javas ?

2) If I don't win the promotional copy of "Java in 24 hours" on the Ranch what is it about this book that is unique enough that I would buy it instead of all the other Java 8 books being released ?

Nice to meet you!

Margaret.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was interested that you decided to include writing an Andoird app as part of the book. Is Java 8 more Android friendly than previous Javas ?

That is indeed interesting, given that the Dalvik VM does not support any of the new Java 8 features or APIs. While that may happen at some point in time, I think it would need a rapprochement between Google and Oracle to happen, and that seems unlikely right now. Would you agree?
 
Rogers Cadenhead
author
Greenhorn
Posts: 12
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added a double-length chapter on Android to the book because so many people are learning Java specifically to create apps. I wanted to give readers an introduction to app development that's compatible with Sams Teach Yourself Android Application Development in 24 Hours, which has a new edition that came out last fall.

Java 8 itself doesn't change much in regard to Android, but Android itself has been enhanced since the previous edition of my book.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java 8 itself doesn't change much in regard to Android

I wouldn't quite put it that way, given that Android is based on the Java 5 class file format, with some Java 6 API enhancements. But Java 8 introduces several class file format changes (namely in JSR-292, JSR-308 and JSR-335), which Dalvik currently knows nothing about. So any libraries compiled to make use of those will not run on Android. Right now, and for the foreseeable future, one would still have to use "java1.5" as the javac target, so using those Java 8 features is not possible in Android apps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic