Core Java
-
Too Many Parameters in Java Methods, Part 7: Mutable State
In this seventh post of my series on addressing the issue of too many parameters in a Java method or…
Read More » -
Too Many Parameters in Java Methods, Part 6: Method Returns
In the current series of posts I am writing on reducing the number of parameters required to call Java methods…
Read More » -
Does Java 8 Still Need LINQ? Or is it Better than LINQ?
LINQ was one of the best things that happened to the .NET software engineering ecosystem in a long time. With…
Read More » -
Java final fields on x86 a no-op?
I have always enjoyed digging in to the details of multi-threaded programming, and always enjoy that despite reading for years…
Read More » -
How is ThreadLocal implemented?
This is a follow-up to my last week post, where I explained the motivation behind ThreadLocal usage. From the post…
Read More » -
Sending a mail in Java (and Android) with Apache Commons Net SMTP : STARTTLS, SSL
Recently working on an Android experiment, I wanted to send emails using a SMTP server, using authentication and encryption, from…
Read More » -
Java implementation of Optimal String Alignment
For a while, I’ve used the Apache Commons lang StringUtils implementation of Levenshtein distance. It implements a few well known…
Read More » -
What are Reentrant Locks?
In Java 5.0 a new addition was made to enhance the intrinsic locking capabilities, called as Reentrant Lock. Prior to…
Read More » -
How to use ECC with OpenJDK
Everyone who ever tried to use Elliptic Curve Cryptography (ECC) in Java with an OpenJDK was either forced to use…
Read More »