Shriansh Kumar has Published 173 Articles

Difference Between Source Code and Byte Code

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jul-2023 22:13:36

485 Views

When we start learning Java, we often come across the two terms Source code and Byte code. When a programmer writes Java code, it is in a form that a machine cannot understand. This code is termed as source code, which is easy to read and modify by humans, but ... Read More

Difference Between Length and Capacity in Java

Shriansh Kumar

Shriansh Kumar

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

355 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

466 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

282 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

80 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

56 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

552 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

786 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

259 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

2K+ 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

Advertisements