Suppose you’ve got a critical section of code, meaning only one process should execute it at a time. In the Java world, one solution is to slap synchronized on the method and call it a day. In Kotlin, we use @Synchronized to get the same effect: repeat(… Read more
Similar
In this article we will explain how to emulate aspects of C#’s Language Integrated Query (LINQ) in Java using Code Reflection. Specifically, LINQ’s capability to enable translation of LINQ queries (C# expressions) to SQL statements. (more…)
Read more »
A user opens an issue complaining the server-side application you developed for them frequently crashes with “too many open files” error under heavy load. Wh... (more…)
Read more »
We all love binary search.
Straightforward, easy to understand algorithm; finds your number in a sorted array
in an appealing O(log n) time. But is it that simple to implement? (more…)
Read more »
The goal of this Project is to produce an open-source reference
implementation of the Java SE 9 Platform defined by
JSR 379 in the Java
Community Process. (more…)
Read more »
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. (more…)
Read more »