Skip to content

Klass Tech

Java

ExecutorService in Java

June 25, 2025 by Kaps

Writing multithreaded code and expecting it to work as expected has been a moment of joy as well as a nightmare both at the same time in the earlier releases of Java. Prior to Java 5, the way we used to create Threads were : Let us go over the following code snippet: In the … Read moreExecutorService in Java

Categories Java, Multithreading, TutorialsTags Concurrency, Java, Multithreading, Tutorial

What is Tail Recursion ?

June 4, 2025June 1, 2025 by Kaps

We all have used Recursion few to many times in our programming journey. Recursion is an approach/strategy of solving a problem such that the solution depends on the smaller/reduced version of the same problem. Let us consider calculating the Factorial of a number. Factorial Output : The above piece of code uses 2 approaches to … Read moreWhat is Tail Recursion ?

Categories Java, TutorialsTags Java, Recursion, Tail Recursion, Tutorial
© 2025 Klass Tech • Powered by WPKoi
Scroll back to top