Running on Java 24-ea+25-3155 (Preview)
Home of The JavaSpecialists' Newsletter

069bResults of Last Survey

Author: Dr. Heinz M. KabutzDate: 2003-05-02Java Version: 1.4Category: Performance
 

Abstract: Quick update on the results of the last survey. Only 15.53% knew the correct answer!

 

This is a quick follow-up to let you know the score of the survey from the last newsletter. In the newsletter I mentioned that i += n is the same as i = (type_of_i)(i + n). A number of readers were surprised that I should mention such an obvious bit of information in an advanced Java newsletter. They were in the minority. Only 32 of the responses indicated that they already knew that information, and a staggering 174 readers responded that they did not know. That comes to only 15.53% of Java Specialists knowing about this. Imagine how few Java beginners know about this?

The quote was attributed to Ralph Waldo Emerson.

Beno Patrik from CLEVERLANCE wrote, suggesting that we could add the cast from int to double to the formula. That would mean that i += n is the same as i = (type_of_i)((type_of_n)i + n), if n is of higher precision than i. I did realise that when I was writing the newsletter, but did not want to muddy the waters. That is a typical upcast that we would expect. The one that I mentioned was a downcast, losing precision, and that we would not expect without a compiler error.

Yesterday, Andrew Righthouse and I spent the public holiday updating the "Feeding the 5000" webpage. We've added new pictures, and Andrew explained a bit more about what the people of the townships experience daily. South Africa is a concentrated example of the sufferings of this world. Less than 10km away from where I live is poverty where people live below the breadline. Visitors who come to South Africa are disturbed about this; that some should live in big houses, drive fancy cars, and others in the same town would be starving. It is dreadful, a legacy of an evil system that will take years to right. Yet the contrast that is so evident in South Africa is a picture of the suffering of the whole world. We have rich countries and poor countries. They are perhaps separated by 1000's of kilometers, but that does not make the poor nations disappear. They are still there, whether you like it or not.

Heinz

 

Comments

We are always happy to receive comments from our readers. Feel free to send me a comment via email or discuss the newsletter in our JavaSpecialists Slack Channel (Get an invite here)

When you load these comments, you'll be connected to Disqus. Privacy Statement.

Related Articles

Browse the Newsletter Archive

About the Author

Heinz Kabutz Java Conference Speaker

Java Champion, author of the Javaspecialists Newsletter, conference speaking regular... About Heinz

Superpack '23

Superpack '24 Our entire Java Specialists Training in one huge bundle more...

Free Java Book

Dynamic Proxies in Java Book
Java Training

We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.

Java Consulting

We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...