techiehub.in

Effective Unit Testing in Java

Overview This article lists down (but not limited to), some common unit testing patterns and how to tackle them in Java. It assumes the use of Mockito java test framework for the demonstration purpose. Full code could be found in github. To bring the patterns to life, I have created five simple classes with minimal […]

May 26, 2025 | Java, Unit Testing | No comments

Java Performance: Role of CodeCache

Overview Why is codecache critical for understanding the Java application performance. Before we jump into topic, let’s first understand how codecache is related to the code written in a .java file As shown in the figure above, the code written in java file is compiled into bytecode ie. .class file The bytecode is understood by […]

October 9, 2024 | Java | No comments

Understanding Memory Model for Java Programmers

Overview As a Java Programmer we are sometimes so engrossed in writing the code and getting the feature/story delivered that we often ignore the performance impact of the code written. This generally results in the applications crashing during the stress test or more often in the production environment. The impact of application crashing in the […]

October 9, 2024 | Java | No comments

Categories