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.

Java Timer Class Example

In this article, we shall discuss the Java Timer Class – java.util.Timer 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 ...

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

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 and the means to update. You can watch the following video and learn how to use arrays in Java: Java 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 »

How to fix cannot find symbol Java Error

We would have come across the error – Cannot find symbol when compiling our Java classes. In this article, let us look at some common causes and how to avoid them. 1. Cannot find symbol Java error This compilation error occurs when the compiler is unable to get an identifier declared in the code. Some of the usual causes could ...

Read More »

Dynamic Array Java Example

An Array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. The length is fixed after creation. A dynamic array is a variable-size list data structure that allows elements to be added or removed. Dynamic arrays overcome a limit of static arrays, ...

Read More »

Java Constant Example

A Java constant is used to represent a value that cannot be changed after assignment. Constants make a program more readable and can take the modifiers static and final. Let us look into some examples for Java constants and their best practices in this article. 1. Java constant examples and best practices 1.1 Usage of final The final modifier indicates ...

Read More »

Int to char Java Example

This article deals with the int to char Java conversion. We will start with the basics of data types and then we will see the conversion of int to char with some examples. 1. Data types in Java Java is a strong statically typed language. This means that every variable and every expression has a type that is known at ...

Read More »