Henry Wong

author
+ Follow
since Sep 28, 2004
Henry likes ...
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
New York City
Cows and Likes
Cows
Total received
141
In last 30 days
0
Total given
667
Likes
Total received
2242
Received in last 30 days
8
Total given
328
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Henry Wong


First, a big thanks to Iuliana Cosmina for being here to promote the book Pivotal Certified Professional Core Spring 5 Developer Exam: A Study Guide Using Spring Framework 5.

The winners are:

   Charles O'Leary
   Geff Chang
   Saket Barve
   Shaik Ashish

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)
Address
Phone Number


Also, please include the following as the subject of your Email.

Book Promo Winner - Pivotal Certified Professional Core Spring 5 Developer Exam: A Study Guide Using Spring Framework 5 - Tuesday, November 5th, 2019


Image from https://m.media-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.

This week, we're delighted to have Iuliana Cosmina helping to answer questions about the new book Pivotal Certified Professional Core Spring 5 Developer Exam: A Study Guide Using Spring Framework 5.


The promotion starts Tuesday, November 5th, 2019 and will end on Friday, November 8th, 2019

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Apress.


Image from https://m.media-amazon.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.

First, a big thanks to Brett Lantz for being here to promote the book Machine Learning with R: Expert techniques for predictive modeling.

The winners are:

   Sudd Ghosh
   paul nisset
   Vaseem Mohammed

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)
Address
Phone Number


Also, please include the following as the subject of your Email.

Book Promo Winner - Machine Learning with R: Expert techniques for predictive modeling - Tuesday, October 22nd, 2019


Image from https://m.media-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.
This week, we're delighted to have Brett Lantz helping to answer questions about the new book Machine Learning with R: Expert techniques for predictive modeling.

Packt has also offered a discount code for the e-book: Coderanch10


The promotion starts Tuesday, October 22nd, 2019 and will end on Friday, October 25th, 2019

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Packt Publishing.


Image from https://m.media-amazon.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.


First, a big thanks to Hanumant Deshmukh for being here to promote OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815.

The winners are:

   Ranjith Kumar Kumar
   Geff Chang
   Adrian Grabowski
   Elias Khan

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)


Also, please include the following as the subject of your Email.

Promo Winner - OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815 - Tuesday, September 10th, 2019


Image from https://images-na.ssl-images-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.

This week, we're delighted to have Hanumant Deshmukh helping to answer questions about the new OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815.


The promotion starts Tuesday, September 10th, 2019 and will end on Friday, September 13th, 2019

We'll be selecting four random posters in this forum to win a free copy of the electronic book/resource provided by the publisher, Enthuware .


Image from https://images-na.ssl-images-amazon.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.

First, a big thanks to Alexander Dean & Valentin Crettaz for being here to promote the book Event Streams in Action.

The winners are:

   Babi Astimal Astimal
   Stephan van Hulst
   Raghunatha Reddy
   Marco Schoolenberg

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)
Address
Phone Number


Also, please include the following as the subject of your Email.

Book Promo Winner - Event Streams in Action - Tuesday, August 20th, 2019


Image from https://m.media-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.
2 months ago

This week, we're delighted to have Alexander Dean & Valentin Crettaz helping to answer questions about the new book Event Streams in Action.


The promotion starts Tuesday, August 20th, 2019 and will end on Friday, August 23rd, 2019

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Manning Publications.


Image from https://m.media-amazon.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.
2 months ago

Bhupinder Verma wrote:It sound funny that I am replying on this post after so long, but it may be helpful to someone else stuck with similar sort of problem.

Any feedback is highly appreciated.



Wow. After five years? That's dedication... Have a cow ...

Henry
4 months ago

Sanjana Senthil wrote:
Hey everyone, I keep getting a syntax error for the else statement....i'm pretty sure my curly brackets are fine .....help would be very appreciated!



There is no such a thing as a while-else statement (meaning else following while) in Java.

Henry
4 months ago

Vaibhav Gargs wrote:
Hi Campbell, I am not sure if any such CPU exists but since these are some special instructions such as CAS etc. which made me think that these instructions will be supported by all CPUs or not?



The CAS instruction is supported by all modern day processors. Keep in mind that the CAS instruction is also needed by the JVM to implement synchronization, so, if the CAS instruction doesn't exist (like with really old JVMs), then a work around has already been implemented.

Henry

Arun Singh Raaj wrote:what kind of lock system does AtomicInteger uses?



The AtomicInteger class uses a technique call "optimistic locking". This means that there isn't any locks...  

Instead, there is a mechanism that is used to detect collisions -- and of course, if it does collide, then there is a mechanism to resolve it (which is just to retry the operation, in most cases). The idea is... since a collision will not happen for a majority of cases, it will run really fast (since there isn't any locks).

Henry

First, a big thanks to Roberto Infante for being here to promote the book Building Ethereum DApps: Decentralized Applications on the Ethereum Blockchain.

The winners are:

   Michael Krimgen
   Joe Cortee
   paul nisset
   ludoviko azuaje

Please send your snail mail address to bookpromotion AT javaranch DOT com. To ensure the quickest response, please provide the following:

Your name (first and last - if your CodeRanch name is different, please include both your real name and Ranch name)
Email
Country (needed even if requesting an e-book)
Address
Phone Number


Also, please include the following as the subject of your Email.

Book Promo Winner - Building Ethereum DApps: Decentralized Applications on the Ethereum Blockchain - Tuesday, May 14th, 2019


Image from https://m.media-amazon.com

As noted in the Book Promotion Eligibility Requirements and Legal type stuff, the winners have 8 days to submit their information. Within 3 days of receipt of your email, we will reply to let you know we got it. If you don't hear back, the goat might have eaten your email. Please let us know by posting in the Ranch Office so we can check on it. Once you have received your copy please let us know by editing the Book Promotions Winners Page and updating the 'Status' column to say you have it.

Thanks and congrats to all the winners.
5 months ago