Problem statement: you have an Enum and you want to ensure that the numeric values returned by ordinal are a certain way (perhaps this Enum is part of a communication protocol with an external system or perhaps it is written … Continue reading →
Java 8 has been released! Some of the highlights of the release in no particular order: Lambda expressions and new API to make use of it (the streams API) New date-time API inspired by Joda Time Poject Nashorn (fast JS … Continue reading →
On a previous post there was a short discussion about what’s the best way to clean up memory mapped files and Philippe brought to my attention the following text from a bugreport: With regard to the “workaround”, described in the JDC comments, … Continue reading →
Memory mapped files are a good and often overlooked tool. I won’t go into the details here on how they work (use the force Google Luke!), but I will quickly summarize their advantages: lazy loading and write caching provided by … Continue reading →
From our mailing list: Explanations to common Java exceptions ArithmeticException – “You are trying to use your computer to solve a mathematical problem that you cannot solve yourself. Read up on your arithmetics and try again.” ArrayStoreException – “You have … Continue reading →
I’ve been reading the How to write one of the fastest expression evaluators in Java article (also published over at JCG) and thought to myself – there is an even faster way! Thus I whipped up a Caliper benchmark which … Continue reading →
This post was originally published as part of the Java Advent series. If you like it, please spread the word by sharing, tweeting, FB, G+ and so on! Want to write for the Java Advent blog? We are looking for … Continue reading →
This post was originally published as part of the Java Advent series. If you like it, please spread the word by sharing, tweeting, FB, G+ and so on! Want to write for the Java Advent blog? We are looking for … Continue reading →
Textul complet de la anunt il puteti gasi aici. Testul Brainbench despre care e vorba puteti gasi aici. Sa nu va enervati prea mult din cauza calitatii testului :-). ID-ul de transcript final trebuie sa fie de forma “http://www.brainbench.com/transcript.jsp?pid=1234567”. Citat … Continue reading →
This post was originally published as part of the Java Advent series. If you like it, please spread the word by sharing, tweeting, FB, G+ and so on! Want to write for the Java Advent blog? We are looking for … Continue reading →