In the context of programming, reflection means the ability of a program to examine and modify its own structure…
Imagine you are taking part in a coding competition. Let’s explore how it might look like.
You found this contest online and registered to participate. On the day of the event, you confirm your presence and, after finishing checking…
Robocode is a game where you write the code for a tank like mini robot. Then your code gets to play against other people. Ten such robots are pitted against each other, and they gain points by shooting or ramming into other robots.
Complex applications within the corporate environment (e.g. ERPs) usually display various lists of objects. These items might…
How many times in your developer life have you encountered a NullPointerException? I would bet your answer to this question is “too many to count”.
In Java, null values are a convenient way to model “the absence of a value”. But it was…
In part one we saw that Objects in general use much more memory than their primitive counterparts. Namely the overhead is more than 4 times the size of the payload (useful information represented as a primitive data type).
Understanding the way memory works is both useful and practical. To fully grasp the more advanced concepts takes a lot of time and effort. However, understanding the biggest issues and developing a set of best practices requires a much smaller investment.
The beauty of adopting java 8 early on is that it gives an extra option to developers. Namely if a project ports to using java 8 but code is still mostly written in a java 7 fashion, one can incrementally add or use…