Shriansh Kumar has Published 324 Articles

Similarities between TreeMap and TreeSet in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 17:39:43

485 Views

The TreeMap and TreeSet, both are the part of Collection Framework classes. There exist a few differences as well as a few similarities in their implementation and working. The TreeMap maintains key-value pair on the other hand the TreeSet does not have this feature. In this article, we will discuss ... Read More

Standard Practice for Protecting Sensitive Data in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 17:38:14

364 Views

Every time we do surfing on the Web or we download any file from Web, we take a risk of a virus attack. Maybe that file contains some malicious code that can breach the security and gain unauthorized access to system resources. If we are building an application that has ... Read More

Size of file on the Internet using Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 17:35:08

627 Views

Determining the size of a file on the Internet seems a little tricky, but it is a quite simple and easy task. Java provides some built-in features that can be used for the given task. In this article, we will discuss how to make a connection to the Internet and ... Read More

Some important terms in Spring Security

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 17:29:39

300 Views

Spring is the most famous Java Web Framework available nowadays. It serves to build web applications through Java programming language. To work with this framework one needs to have a strong background and understanding of Java. It is essential to protect our valuable data from unethical practices. In this article, ... Read More

Sort Java Vector in Descending Order using Comparator

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 17:08:52

549 Views

Vectors implement the List interface and are used to create dynamic arrays. The array whose size is not fixed and can grow as per our needs is called as a dynamic array. The Comparator is an interface available in ‘java.util’ package. Sorting means rearranging the elements of a given list ... Read More

Runtime Type Identification in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 16:56:42

962 Views

Runtime Type Identification in short RTTI is a feature that enables retrieval of the type of an object during run time. It is very crucial for polymorphism as in this oops functionality we have to determine which method will get executed. We can also implement it for primitive datatypes like ... Read More

Sort LinkedHashMap by values using Comparable Interface in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 16:53:12

420 Views

LinkedHashMap is a generic class that is used to implement Map Interface. Also, it is a sub class of the HashMap class therefore, it can use all the methods and also perform similar operations that a HashMap class is capable of. Java provides various ways to sort LinkedHashMap, we ... Read More

Sort LinkedHashMap by Keys in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 16:49:47

1K+ Views

LinkedHashMap is a generic class that is used to implement Map Interface. Also, it is a sub class of the HashMap class therefore, it can use all the methods and also perform similar operations that a HashMap class is capable of. Java provides various ways to sort LinkedHashMap, we ... Read More

Runtime JAR File in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 16:48:29

814 Views

The full form of JAR is Java Archive File. Java provides this feature to bundle multiple java program files as well as their corresponding class files into one single unit. Perhaps, it is the only file format that can store audio, video, text files and so forth in one place. ... Read More

Program to Convert Byte Array to Writer in Java

Shriansh Kumar

Shriansh Kumar

Updated on 15-May-2023 16:45:00

368 Views

Byte Array can be said as the combination of byte and array. Byte is the smallest integer type and Array is a linear data structure that is used to store groups of elements of similar datatypes. This article will discuss a program to convert Byte Array to Writer in Java. ... Read More

Advertisements