Tag: java tutorial


  • Getting Started With Mockito and JUnit

    In this mockito tutorial, learn the fundamentals of the mockito framework, and how to write JUnit tests along with mockito with an example. 1. Mockito Introduction Mockito is an open-source framework that allows us to easily create test doubles (mocks). A ‘test double‘ is a generic term for any case where we replace a production object for testing…

  • Java 8 Concurrency (2023)

    In simple words, concurrency is the ability to run several programs or several parts of a program in parallel. Concurrency enables a program to achieve high performance and throughput by utilizing the untapped capabilities of the underlying operating system and machine hardware. For example, modern computers have several CPUs or several cores within one CPU, the program…