Home » Java

Tag Archives: Java

Arrays.aslist in Java

Bipartite Graph

Hello. In this tutorial, we will make understand and implement java.util.Arrays.asList(…) method. 1. Introduction Arrays.asList() method in java is used to create a fixed-size list in java. It is a static method that returns a list of homogeneous elements and does not throw any exceptions. The method is represented by the below syntax and below reports compilation errors if heterogeneous ...

Read More »

Memory Leak in Java

Bipartite Graph

Hello. In this tutorial let us learn about memory management and memory leaks in a java programming language. 1. Introduction Memory management in java is an interesting concept where the memory is divided into three different parts. Fig. 1: Memory management in java Let us understand each part separately. 1.1 Young generation The young generation refers to a place where ...

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 »

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 »

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 »

How to use Spies in Mockito

Hello. In this tutorial, we will understand Spy in Mockito. As stubbing is now obsolete I will focus @Spy annotation in this tutorial. 1. Introduction Mockito is a popular framework used to mock the interfaces or classes so that dummy functionality can be added during the unit testing. It is a java based library that helps simplify the test-cases development ...

Read More »

Convert Hex to/from ASCII in Java

Bipartite Graph

Hello. In this tutorial, we will explore HEX to/from ASCII conversion in Java. 1. Introduction In order to convert ASCII to hexadecimal values in Java is done in the following steps – Covert the string to the character array Convert each string to an integer Convert each integer value to toHexString() Hex to ASCII conversion in Java is done in ...

Read More »

How to find a Bipartite Graph?

Bipartite Graph

Hello there, in this article we will show how to find if a graph is a Bipartite Graph through detailed examples. 1. Introduction In this article, we will define a bipartite graph, explore the properties of a bipartite graph, document an algorithm used to determine whether a graph is bipartite or not, and implement this algorithm in Java. Finally, we ...

Read More »

Top 20 Spring-boot interview questions

Bipartite Graph

1. Introduction Due to the content of this article, in the first section, I will start with a brief introduction about Spring and Spring-Boot framework, what are these frameworks and where to use them. Millions of developers are using Spring and Spring-Boot widely. 1.1. Spring Firstly, let’s start with a brief introduction to Spring frameworks which is a programming and ...

Read More »

Radix Sort in Java

Bipartite Graph

1. Introduction Sorting algorithms were devised in order to make the ordering of elements of a list or array possible. There are many available to choose from, such as Bubble Sort, Quick Sort, Selection Sort, Heap Sort, Merge Sort, just to name a few. Radix Sort is a sorting algorithm that just happens to be fairly efficient. This article will ...

Read More »