Shriansh Kumar has Published 175 Articles

Difference Between Length and Capacity in Java

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 22:10:03

299 Views

In Java, the two terms length and capacity are related to the storage of elements in a collection like arrays, String and ArrayList. Length refers to the number of elements that are currently stored in a given collection, whereas capacity refers to the maximum number of elements that the ... Read More

getParameter() - Passing data from client to JSP

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 22:04:59

332 Views

JSP stands for Java Server Pages and is used for the purpose of developing web based applications. A single JSP page consists of HTML tags for static content and JSP tags to construct dynamic content. The JSP tags start with ‘’. We save our JSP file with the extension ‘.jsp’. ... Read More

Difference Between URL, URI and URN in Java

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 21:45:10

223 Views

The modern Internet is all about the World Wide Web which holds billions of websites and resources. There are several ways to access those web-based resources by following the protocols. Java has the concept of networking that is used to establish communication between clients and those resources. But, to locate ... Read More

Difference Between URL and URN in Java

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 21:19:47

65 Views

The modern day Internet is all about the World Wide Web which holds billions of websites and resources. There are several ways to access those web-based resources by following the protocols. Java has the concept of networking that is used to establish communication between clients and those resources. But, to ... Read More

Difference Between URI and URN in Java

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 21:13:59

48 Views

The modern day Internet is all about the World Wide Web which holds billions of website and resources. There are several ways to access those web-based resources by following the protocols. Java has the concept of networking that is used to establish communication between clients and those resources. But, to ... Read More

Difference Between Lock and Monitor in Java Concurrency

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 21:08:01

405 Views

In Java, concurrency is a technique that allows multiple tasks or processes to run simultaneously on a single processor or multiple processors. It can improve the performance and responsiveness of applications. However, it also introduces new challenges and complexities to the Java developers, such as synchronization and deadlock. To handle ... Read More

Difference Between JavaEE and Spring

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 21:04:32

679 Views

The debate about JavaEE and Spring is very common among Java developers. Both technologies emerged as popular frameworks for building enterprise applications using Java. Java EE is a more adaptable and distributed framework for developing big software. Spring, on the other hand, is open source and makes use of the ... Read More

Getting Set View of Keys from HashMap in Java

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 20:39:59

180 Views

To get the set view of keys from a HashMap in Java, we can use the in-built method named ‘keySet()’. Here, the HashMap is a class that is used to implement Map Interface. It stores its element in key-value pairs. The Key is an object that is used to fetch ... Read More

Getting Synchronized Map from Java HashMap

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 20:32:34

1K+ Views

To get the synchronized Map from a Hash Map in Java, we can use an in-built method of Collection interface named ‘synchronized Map()’. Here, the Hash Map is a class that is used to implement Map Interface. It stores its element in key-value pairs. The Key is an object that ... Read More

Getting Synchronized Map from Java TreeMap

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 20:28:31

201 Views

To get the synchronized Map from a TreeMap in Java, we can use an in-built method of Collection interface called ‘synchronizedMap()’. Here, TreeMap is a class that is used to implement NavigableMap Interface. It stores the elements of the map in a tree structure. It provides an efficient alternative to ... Read More

Advertisements