Core Java
-
Objects Should Be Immutable
In object-oriented programming, an object is immutable if its state can’t be modified after it is created. In Java, a…
Read More » -
JUnit in a Nutshell: Test Runners
The fourth chapter of my multi-part tutorial about JUnit testing essentials explains the purpose of the tool’s exchangable test runners…
Read More » -
Java Concurrency Tutorial – Locking: Intrinsic locks
In previous posts we reviewed some of the main risks of sharing data between different threads (like atomicity and visibility)…
Read More » -
jUnit: Rules
Rules add special handling around tests, test cases or test suites. They can do additional validations common for all tests…
Read More » -
Why you should control Visibility of Class and Interface in Java
One of the important aspects of software development is maintenance, and it’s proven by experience that a piece of software…
Read More » -
2 Examples to Convert Byte[] array to String in Java
Converting a byte array to String seems easy but what is difficult is, doing it correctly. Many programmers make mistake…
Read More » -
JAXB – A Newcomer’s Perspective, Part 2
In Part 1 of this series, I discussed the basics of loading data from an XML file into a database…
Read More » -
JUnit in a Nutshell: Test Isolation
Working as a consultant I still meet quite often programmers, who have at most a vague understanding of JUnit and…
Read More » -
Big Java News in Late Summer 2014
As is typical when JavaOne is imminent, there has been much big news in the Java community recently. This post…
Read More »