Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am OCJP 6 Certified, What will i get from this book if i decide to read this book for fun?

 
Tushar Bhaware
Ranch Hand
Posts: 62
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reese,
I have OCJP 6 certification. I love to read new books on java.If i decided to give this book a chance,what new things i will learn from this book?
 
Roel De Nijs
Sheriff
Posts: 9929
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess not much. Maybe a few minor java 7 features like binary literals, underscores in numbers,...
 
Richard Reese
author
Ranch Hand
Posts: 84
5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the standpoint of differences between Lava 6 and Java 7, you will not see a lot of differences. Depending on your understanding of Java, the book's treatment of program memory may enhance your understanding of Java. One of the frustrations I have with most programming books is their minimal/non-existent discussion of the program stack and heap. I believe this is central to understanding how modern languages work and have tried to rectify that deficiency in my book.
 
Tushar Bhaware
Ranch Hand
Posts: 62
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Richard Reese wrote:From the standpoint of differences between Lava 6 and Java 7, you will not see a lot of differences. Depending on your understanding of Java, the book's treatment of program memory may enhance your understanding of Java. One of the frustrations I have with most programming books is their minimal/non-existent discussion of the program stack and heap. I believe this is central to understanding how modern languages work and have tried to rectify that deficiency in my book.


Hi Reese,

Thanks for reply. I have minimal understanding of program memory. What i know is that Local variables are stored on Stack Area,Heap area is for dynamic allocation and Static and global variables are stored on Data Area.Objects are stored on heap whereas references are stored on Stack.This is what i understand about program memory. But i don't know how it will affect my programming skill.

Can you tell me,how it will improve my coding skill if i have understanding of program memory? and how deeply it is covered in your book?

Thanks
Tushar Bhaware
 
Richard Reese
author
Ranch Hand
Posts: 84
5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two areas that immediately come to mind where understanding the stack/heap helps. First, when we pass a reference to an object as a parameter, we are passing a copy of the reference. If we modify the parameter within the method we modify the copy of the reference instead of the original reference. This can result in unexpected behavior. The second are is with recursion. The existence of multiple local variables for each invocation of a method enables recursion to occur. An understanding of stack/heap helps clarifies these issues.

In my book, I used diagrams to illustrate the state of the stack/heap whenever possible. The book does not address recursion, but once you understand how the stack/heap works it is easy to use it to further your understanding of recursion. The idea is that if you understand the foundations of any language, you can use it to explain concepts such as recursion when they show up.
 
Tushar Bhaware
Ranch Hand
Posts: 62
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for replying,sir.
All the best for your book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic