Home » Archives for Gaurav Verma

Author Archives: Gaurav Verma

I am Gaurav Verma from Kolkata, India. I have done Bachelors of Technology in Computer Science & Engineering from Narula Institute of Technology under West Bengal University of Technology. I joined NIIT LTD. as a Technical Trainer in 2007 and trained students pursuing GNIIT and Bsc.IT curriculum as well as modular courses in various technologies like Java, .Net and Open Source technologies. I have been a very enthusiastic Java programmer and take lot of interest in programming through Java language and also develop Standalone and web applications using Java technologies. My favourite pass time are Solving Puzzles, Sudoku, watching documentaries etc.

How to Install Java on Linux Mint

In this article, we will explain how to install Java on Linux Mint. 1. Introduction Java is the most popular programming language of all due to its platform independence nature and versatile features such as OOPS, Multi-threading, Multitasking, concurrent programming, and many more. In this tutorial, we are going to see how we can install Java on the Linux Mint ...

Read More »

Static vs Non-Static in Java

In this article, we will explain Static vs Non-Static definitions in Java. 1. Introduction In Java, there are around 57 reserved keywords that cannot be used as an identifier. One of them is the static keyword. Static keyword in Java is used for memory management. It can be used with variables, methods, blocks, and nested classes. Static keyword is actually ...

Read More »

Max Heap Java Example

In this article we will show what is max heap in Java and why we use it. 1. Introduction A max heap binary tree is a complete binary tree in which the value of each node is less than or equal to the value of its parent, with the maximum-value element at the root. A typical representation of a Max-heap ...

Read More »

Java Pair Class Example

1. Introduction to Java Pair Class A Java pair class is a container a tuple of two objects. Pairs provide a convenient way of handling simple keys to value association and are particularly useful when we want to return two values from a method. A simple implementation of a Pair is available in the core Java libraries e.g. javafx.util.Pair. In Java, maps are ...

Read More »

Java sort array Example

1. Introduction Java Arrays.sort() method is a method of the java.util.Arrays class which is used to sort an array passed to it as a parameter either in ascending order or in order of user-defined type. 2. Arrays.sort() method Table displaying the different overloaded forms of Arrays.sort() method. Method SyntaxDescriptionParametersExceptionstatic void sort(byte[] a)Sorts the specified array into ascending numerical order. a – ...

Read More »

Java Print Example

1. Introduction Java print, Java println and Java System.out.println method is a convenient method found both within the java.io.PrintStream and java.io.PrintWriter class and is used to display a text on the console. The text is passed as a parameter to this method in the form of a String. After printing the text on the console, it places the cursor at ...

Read More »

Java.util.Dictionary Class – Java Dictionary Example

1. Introduction In this example, we will learn about java.util.Dictionary class. The Dictionary class is the abstract parent of any class which maps keys to values e.g. Hashtable. In a Dictionary object, every key is associated with at most one value. Using the Dictionary object and the key we can lookup for the respective element. Any non-null object can be ...

Read More »