Shriansh Kumar

Shriansh Kumar

211 Articles Published

Articles by Shriansh Kumar

Page 14 of 22

Difference Between Spring DAO vs Spring ORM vs Spring JDBC

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 1K+ Views

The given three terms Spring DAO, Spring ORM and Spring JDBC, are related to Data Access in Spring Framework. This framework was developed in June 2003 by Rod Johnson and with its release, it became very famous among Java developers because of its comprehensive set of tools and features for building enterprise applications. Although these terms serve the same purpose there exist a few distinctions between them. In this article, we are going to discuss the difference between Spring DAO, Spring ORM and Spring JDBC. Spring DAO vs Spring ORM vs Spring JDBC In this section, we will introduce the ...

Read More

Difference between YAML(.yml) and .properties file in Java SpringBoot

Shriansh Kumar
Shriansh Kumar
Updated on 17-Aug-2023 2K+ Views

Infrequently a SpringBoot developer may need an external configuration to define features for SpringBoot applications so that we can use the same application code in different environments. For this purpose, we can use YAML and .properties files that are used to store the required features. Despite similar functionality, there are a few distinctions between them in terms of syntax and additional features. In this article, we are going to explore what are the main differences that exist between .yml and .properties files. YAML vs Properties Files In this section, we will introduce the YAML and properties files and later, we ...

Read More

Different name reusing techniques in Java

Shriansh Kumar
Shriansh Kumar
Updated on 02-Aug-2023 297 Views

In Java, there exist different name reusing techniques for various types of entities, sucha s variables, methods, datatypes or packages. These techniques affect the accessibility and behavior of the entities according to their need and use. In this article, we will discuss four common ways to reuse a name in Java: overriding, hiding, overloading and shadowing Name reusing techniques in Java Shadowing This technique allows a local variable to have the same name as another field or member of the enclosing class. In this case, the previous implementation of the member gets shadowed by the declaration of a new variable. ...

Read More

Hierarchical Data in Pandas

Shriansh Kumar
Shriansh Kumar
Updated on 25-Jul-2023 3K+ Views

Hierarchical data is often used to represent multiple levels of nested groups or categories. For example, a company may have a hierarchy of employees, departments, and locations. A product may have a hierarchy of categories and subcategories. One of the challenges of working with hierarchical data is how to represent it in a tabular format which can make it easy to manipulate and analyze. In this article, we are going to present hierarchical data using Pandas' built-in methods like 'set_index()' and 'groupby()'. Python Program to Represent Hierarchical Data using Pandas First, let's briefly discuss Pandas and its ...

Read More

Percentile Rank of a Column in a Pandas DataFrame

Shriansh Kumar
Shriansh Kumar
Updated on 25-Jul-2023 3K+ Views

Finding the percentile rank is a common operation that is used for comparison between data of a single dataset. The end result of this operation shows a certain percentage is greater than or equal to the specified percentile. For instance, suppose a student obtains a score greater than or equal to 80% of all other scores. Then, the percentile rank of that student is 80th. To find the percentile rank of a column in a Pandas DataFrame, we can use the built-in methods named 'rank()' and 'percentile()' provided by Python. Python Program to find Percentile Rank of ...

Read More

Plot Line Graph from NumPy Array

Shriansh Kumar
Shriansh Kumar
Updated on 25-Jul-2023 4K+ Views

A line graph is a common way to display the relationship between two dependent datasets. Its general purpose is to show change over time. To plot a line graph from the numpy array, we can use matplotlib which is the oldest and most widely used Python library for plotting. Also, it can be easily integrated with numpy which makes it easy to create line graphs to represent trends and patterns in the given datasets. Python Program to Plot line graph from NumPy array Here are the example programs that demonstrate how to plot line graphs from numpy ...

Read More

ProcessBuilder in Java to create a basic online Judge

Shriansh Kumar
Shriansh Kumar
Updated on 21-Jul-2023 347 Views

Online judge is a platform that serves to compile, execute and evaluate programming solutions to a given problem. It is widely used for problem solving and organizing programming contests. To create a basic online judge in Java using ProcessBuilder class, define an instance of ProcessBuilder and specify the name of program and commands as arguments The ProcessBuilder class is used to create and manage operating system processes. It allows us to chain multiple processes, where the output of one process can be used as the input to another process. Also, it provides a variety of built-in methods such as redirectOutput(), ...

Read More

Difference between JIT and JVM in Java

Shriansh Kumar
Shriansh Kumar
Updated on 21-Jul-2023 1K+ Views

When we start learning Java, we often come across the terms like JIT and JVM. Having a good understanding of the relationship and differences between both terms is crucial, as they are part of fundamental concepts in the Java programming language. JVM is the main component of the Java Runtime Environment that executes Java bytecode, whereas JIT is a compiler available in the JVM. This article aims to explain the difference between JIT and JVM. JIT vs JVM in Java JVM It is an acronym that stands for Java Virtual Machine. The name itself suggests that it is something that ...

Read More

Difference Between Source Code and Byte Code

Shriansh Kumar
Shriansh Kumar
Updated on 21-Jul-2023 2K+ 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 not by machines. Therefore, before execution of code, we need to convert it into a machine readable format that is termed as machine code. However, Java first converts the source code to an intermediate code called byte code and then, into a machine code. Let’s discuss the difference between the ...

Read More

Difference Between Length and Capacity in Java

Shriansh Kumar
Shriansh Kumar
Updated on 21-Jul-2023 925 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 collection can hold. In this article, we will explore the difference between Length and Capacity in Java. Length vs Capacity in Java Length To get the length of an array we use its ‘length’ property and we can get length of a String using its built-in method ‘length()’. In the ...

Read More
Showing 131–140 of 211 articles
« Prev 1 12 13 14 15 16 22 Next »
Advertisements