Home » Archives for Venkat-Raman Nagarajan

Author Archives: Venkat-Raman Nagarajan

Venkat-Raman Nagarajan
Venkat works for a major IT firm in India and has more than a decade of experience working and managing Java projects for a banking client.

Thread.sleep Java Example

In this article, we’ll discuss about thread.sleep in Java along with some examples. We’ll start by explaining some details on threads, the importance of sleep method, and then we will use examples of the sleep method. 1. What is a thread in Java Threads are lightweight processes that allow concurrent execution of multiple activities. It allows us to perform synchronous ...

Read More »

Java LocalDate Example

LocalDate class in Java 8 date time API represents a local date without time zone details. It is located in the java.time.LocalDate object. In this article, we shall look at some of the commonly used methods of LocalDate with some examples. 1. What is LocalDate LocalDate is an immutable thread-safe date-time object that represents a date, often viewed as year-month-day. ...

Read More »

Java Comments

Comments in Java are non-executable statements that are used to provide additional information about some piece of code logic, method, or class. In this article, we shall discuss types of comments, and when and how to write them. 1. Comments in Java and their types Comments are non-executable statements that are provided to understand code better. These are usually provided ...

Read More »

Java Vector Class Example

In this article, we shall discuss Vector in Java and its usage and common methods. 1. What is a Vector The Vector class implements a growable array of objects. Like an array, it contains components that can be accessed using an integer index. However, the size of a Vector can grow or shrink as needed to accommodate adding and removing ...

Read More »

Java Timer Class Example

In this article, we shall discuss the Java Timer Class and some of its important methods with an example. 1. What is Java timer? A timer is a facility for threads to schedule tasks for future execution in a background thread. Tasks may be scheduled for one-time execution, or for repeated execution at regular intervals. Corresponding to each Timer object ...

Read More »

Topological Sort Java Example

In this article, we will discuss the Topological sort Java algorithm. We will start with graphs, some common types, and to store graphs. 1. Graph and common types A graph is a non-linear data structure consisting of a finite set of Vertices (also called nodes) connected by Edges. Fig 1. A sample Graph with vertices and edges In the above ...

Read More »

Instantiate Java Example

In this post, we feature a comprehensive article implementing an Instantiate Java example. The phrase “instantiating a class” means to create an object. A class provides the blueprint for objects, and we create an object from a class. For example, the statement – Animal doggy = new Animal(); has three parts to it. Declaration: Animal doggy declares a variable doggy ...

Read More »

Int Array Java Example

In this article, we will explain what arrays are in java and then we will create a Int Array Java Example. An array is a container object that holds a fixed number of values of a single type. As the name indicates, an int array holds only int values. In this article, let us look at examples of int array ...

Read More »

Java Loops Tutorial

Java Loops provide a means to perform a particular task repeatedly. In this article, we shall discuss about the loops in Java and their usage. Table Of Contents 1. While loop 2. Do-while loop 3. For loop 3.1. Simple for loop 3.2. For each loop 3.3. Java 8 foreach loop 4. Download The Source Code 1. While loop The while ...

Read More »

Java Float Datatype Example

The Float class wraps a value of primitive type float in an object. An object of type Float contains a single field whose type is float. In addition, this class provides several methods for converting a float to a String and a String to float, as well as other constants and methods useful when dealing with float. Let us look ...

Read More »