Shriansh Kumar has Published 324 Articles

Step by Step guide to install Intellij Idea

Shriansh Kumar

Shriansh Kumar

Updated on 12-May-2023 17:15:27

7K+ Views

IntelliJ Idea is a cross-platform integrated development environment that is designed to develop applications written in JVM based languages like Java and Kotlin. JetBrains has developed this java IDE. It is supported on all popular operating systems like Windows, Mac, Linux. If you want to install this powerful IDE ... Read More

StreamCorruptedException in Java

Shriansh Kumar

Shriansh Kumar

Updated on 12-May-2023 16:51:50

604 Views

In java, StreamCorruptedException occurs when problem is found with the data being read from or written to a stream. The problem may be the data we are reading or writing is in the wrong format or contains errors. If the format of given file is not correct. When stream has ... Read More

Serializable Interface in Java

Shriansh Kumar

Shriansh Kumar

Updated on 12-May-2023 16:41:48

1K+ Views

The Serializable interface provides the facility to serialize an object. It does not define any methods and member variables. When a class implements serializable interface it simply indicates this class and its sub-classes can be serialized. The serializable interface serves to achieve the Serialization and Deserialization of an object. In ... Read More

Slicker Algorithm to Find the Area of a Polygon in Java

Shriansh Kumar

Shriansh Kumar

Updated on 12-May-2023 16:23:51

448 Views

The term ‘Polygon’ originated from the Greek words ‘Poly’ which means ‘many’ and ‘gon’ which means ‘angle’. A polygon is a two dimensional closed plane shape created by connecting three or more than three straight lines. For example, triangle, quadrilateral, hexagon and so forth. Although there are many ways ... Read More

Starting with first Servlet Application

Shriansh Kumar

Shriansh Kumar

Updated on 08-May-2023 10:21:05

508 Views

Servlets are small java modules that are used on server side of a web connection to enhance the functionality of web server. All the methods and classes for creating a servlet are available in ‘javax.servlet’ and ‘javax.servlet.http’ packages. Hence, it is important to import them into your program before working ... Read More

StackOverflowError in Java with Examples

Shriansh Kumar

Shriansh Kumar

Updated on 05-May-2023 18:18:33

918 Views

When the stack ran out of space then StackOverflowError occurs. It is a runtime error indicating that JVM has run out of resources. The main reasons for this kind of error may be: Circular references, infinite Recursion or heavy application that utilizes more memory. In this article, we will discuss ... Read More

Sort and Search an Element in Java

Shriansh Kumar

Shriansh Kumar

Updated on 05-May-2023 18:16:52

3K+ Views

Sorting and searching are the basic operations we can perform on arrays. Sorting means rearranging the elements of a given list or array in ascending or descending order whereas searching means finding an element or its index in a list. Although various algorithms are available to perform these operations, in ... Read More

StrictMath subtractExact() in Java With Examples

Shriansh Kumar

Shriansh Kumar

Updated on 05-May-2023 18:11:13

167 Views

In java, the subtractExact() is a static method of the class StrictMath. It is available in ‘java.lang’ package. In this article, we will discuss StrictMath and some of its inbuilt methods. We will also see the implementation of subtractExact() method and how it is different from other methods of this ... Read More

Java Program for Search an element in a sorted and rotated array

Shriansh Kumar

Shriansh Kumar

Updated on 05-May-2023 18:04:44

435 Views

Suppose you have a sorted array with no duplicate values and from a certain index this array is rotated. You have to search for a particular element in it. If it is available in the array then return the index otherwise return -1. In this article, we will solve the ... Read More

StringJoiner Class vs String.join() Method to Join String in Java

Shriansh Kumar

Shriansh Kumar

Updated on 05-May-2023 18:01:43

747 Views

There are numerous ways of joining strings in java. The StringJoiner class and String.join() method are two of them. Both are used to join two or any number of strings but the difference lies in their implementation. In this article, we will try to find the differences that exist ... Read More

Advertisements