My writing.
Java internals, framework quirks, and the occasional Linux command. Explanations and examples for the next time you’re figuring something out.
1 min read
java
Why one should prefer static factory methods over constructors in Java?
How named factory methods offer flexible object creation, caching, and clearer Java APIs.
4 views
2 likes
0 shares
1 min read
java
Why one should always override hashCode() & equals() together?
How the equals and hashCode contract affects object equality and hash-based collections.
3 views
1 like
0 shares
2 min read
javascript
Next Task Queue vs Micro Task Queue in Node.js
Compare process.nextTick with Promise microtasks and their execution order in Node.js.
4 views
0 likes
0 shares
1 min read
java
Objects.hashCode() vs Objects.hash() in Java
Compare Objects.hashCode and Objects.hash, including their inputs and hashing behavior.
3 views
1 like
0 shares
1 min read
java
Why one should favour static member classes over non-static ones?
Why static nested classes can reduce hidden references, memory overhead, and accidental retention.
2 views
1 like
0 shares
2 min read
java
Reflection APIs vs MethodHandles API in Java
Compare Java reflection and method handles for dynamic access to methods and fields.
5 views
0 likes
0 shares