if else Statement in Java With Examples
To control the execution flow, Java programming language provides two primary conditional constructs: if-else and switch-case statement. In this post we'll talk about if else statement in Java in...
View ArticleNamed Tuple in Python
When working with tuples in Python, you can store multiple values and access them using indexes. However, if a tuple contains many fields, remembering field ordering and accessing them using index...
View ArticleTuple in Python With Examples
Tuple in Python is one of the sequence data types used to store a group of elements. Tuple is similar to Python list with one notable difference; tuple is immutable where as list is mutable.Once a...
View ArticleforEach Statement in Java 8
One of the most impactful features introduced in Java 8 was the combination of lambda expressions and the stream API. Alongside these came the forEach statement in Java, a concise way to iterate over...
View ArticleTreeSet in Java With Examples
TreeSet in Java is one of the implementation of the Set interface, alongside HashSet and LinkedHashSet.Just like other implementations of the Set interface HashSet and LinkedHashSet, TreeSet also...
View ArticleWhat is Agentic AI
In this post we'll try to understand what is Agentic AI, how it works and what are the benefits of it.The Beginning- ChatGPT and Generative AIIf we start from the beginning of the current AI boom then...
View ArticleJava Program - Sieve of Eratosthenes to Find Prime Numbers
In this post we'll see how to write a program in Java to find prime numbers up to a given limit using Sieve of Eratosthenes algorithm. The Sieve of Eratosthenes is one of the most efficient algorithms...
View ArticleResolving ClassNotFoundException in Java – Causes, Examples, and Fixes
In this article we’ll see what is java.lang.ClassNotFoundException and how to resolve ClassNotFoundException in Java. ClassNotFoundException in Javajava.lang.ClassNotFoundException is a child class of...
View ArticleHow to Convert Date to String in Java
In most of the applications it’s a very common requirement to print dates in the required formats. For that you need to convert date to a String in Java that matches the required format.This guide...
View ArticleAgents in LangChain With Examples
In the post Tool Calling in LangChain we saw how to execute the created tools manually by parsing the tool call sent by LLM and then explicitly invoking the required function. While effective for...
View ArticleFunctional Interfaces in Java
A functional interface in Java is an interface that contains exactly one abstract method. A functional interface is also known as SAM type where SAM stands for (Single Abstract Method). They form the...
View ArticleRadix Sort Program in Java
In this post we’ll explore how to implement Radix sort program in Java. Radix Sort belongs to the family of non-comparison-based sorting algorithms, similar to Counting Sort and Bucket Sort. It can...
View ArticleHow to Loop Through a Map in Java
When working with collections, one common requirement is iterating over a Map implementation such as HashMap or Treemap in Java. Understanding how to loop through a Map in Java is essential for tasks...
View ArticleJavaScript Array and Object Destructuring
JavaScript destructuring assignment is a concise way to unpack values from arrays or properties from objects directly into variables. Introduced in ES6, destructuring makes code cleaner, reduces...
View ArticleJava DelayQueue With Examples
DelayQueue in Java is an implementation of BlockingQueue interface introduced in Java 5 as part of the java.util.concurrent package. Alongside other concurrent utilities like CyclicBarrier, Exchanger,...
View Articlepass Statement in Python
The pass statement in Python is a simple yet powerful tool that acts as a placeholder in your code. It performs no action when executed, but ensures that your program remains syntactically correct....
View ArticleJava split() Method - Splitting a String
The split() method in Java String class is used to split the string into one or more substring based on the given regular expression.Java split() method has 2 variants-split(String regex)Splits this...
View ArticleMultiple Catch Blocks in Java Exception Handling
Multiple catch blocks in Java allow developers to handle different types of exceptions that may occur within a single try block. When code inside the try block throws an exception, the JVM inspects...
View ArticlePython continue Statement With Examples
The Python continue Statement is a loop control keyword used inside for and while loops to skip the rest of the current iteration and jump directly to the next cycle of the loop. When continue is...
View ArticleMethod Overloading in Java
Method Overloading in Java occurs when two or more methods in the same class (or in a parent‑child class hierarchy) share the same method name but differ in their parameter list, either by the number...
View Article