Home » Core Java

Core Java

Bit Masking in Java

Bipartite Graph

1. Introduction Bit masking is visualizing a number or other data in binary representation. Some bits are set and others are unset where set means true or 1 and unset means false or 0. It allows us to store multiple values inside one numerical variable. You should think of every bit as a separate value instead of thinking of this number as a whole. 2. Bitmasking Bitmasking is an operation in which we only allow ...

Read More »

Sliding Window Algorithm in Java

Bipartite Graph

1. Introduction This is an in-depth article related to the Sliding Window Algorithm. This algorithm cuts down the necessity of nested loops by having one loop. This brings down the complexity in time. 2. Sliding Window Algorithm 2.1 Prerequisites Java 7 or 8 is required on the Linux, windows, or mac operating systems. Maven 3.6.1 is required for building the ...

Read More »

-Xms and -Xmx parameter

Bipartite Graph

Hello. In this tutorial, we will understand Xms and Xmx parameters in the java programming language. 1. Introduction Heap space in java is the one created by the JVM when it starts and is slower than the stack memory. It is not thread-safe and is not automatically deallocated. It is used by the applications and it can be broken down ...

Read More »

JavaScript parseInt()

Bipartite Graph

1. Introduction This is an in-depth article related to the Javascript parseInt method. This method is used for parsing an integer string to return an integer. This method has parameters string and radix. Radix parameter represents the numeral system. 2. Javascript parseInt()  The parseInt() method parses a string and returns an integer or NaN. 2.1 Prerequisites A browser that supports ...

Read More »

Javascript slice() Method

Bipartite Graph

1. Introduction This is an in-depth article related to the Javascript slice method. The slice method is used for getting a subset of elements in the array. 2. Javascript slice() The slice() method on the array returns a new array having a part of the array. The actual array does not change. 2.1 Prerequisites A browser that supports javascript is ...

Read More »

CRUD operations in postgres jsonb

Bipartite Graph

Hello. In this tutorial, we will learn how to handle crud operations on a jsonb column in the postgres database. 1. Introduction SQL stands for Structured Query Language and is used to extract and organize data stored in relational databases like MySQL, PostgreSQL, Oracle, etc. A relational database consists of rows and columns that allow fetching specific information from databases ...

Read More »

GC Overhead Limit Exceeded

Bipartite Graph

Hello. In this tutorial, we will understand the GC Overhead Limit Exceeded error in the Java programming language. 1. Introduction Out of memory error in java is a virtual machine error thrown by the java virtual machine when the resources are exhausted. In other words, the error prevails when the virtual machine has spent hours performing the garbage collection but has ...

Read More »

Convert CSV to Json using Java

1. Introduction A comma-separated values (CSV) file is a delimited text file that uses a comma to separate values. Each line of the file is a data record. Each record consists of one or more fields, separated by commas. The use of the comma as a field separator is the source of the name for this file format. A CSV ...

Read More »

Java HTTPS Client

Bipartite Graph

Hello. In this tutorial, we will make an https client call from java and log the output on the console. 1. Introduction Java8 programming language supports for TLS 1.2 version where TLS defines the transport-level security and is a successor to the SSL (Secure sockets layer) protocol. It is a cryptographic protocol designed to provide secure communication over the computer ...

Read More »

Tree Map in Java

Bipartite Graph

1. Introduction A Tree Map is a red-black tree-based NavigableMap implementation. A NavigableMap is a SortedMap with some navigation methods – this returns the closest match for given search targets. The sorting is done according to the natural ordering of the keys present in the map. If a Comparator is provided at the creation time then it overrides the natural ...

Read More »