Shriansh Kumar has Published 324 Articles

Difference Between VB.NET and Java

Shriansh Kumar

Shriansh Kumar

Updated on 09-Apr-2025 19:34:30

806 Views

VB.NET and Java are the two widely used programming languages available nowadays. They serve to develop a variety of software including web and android applications. The features and capabilities of both languages make it difficult to choose one over another. In this article, we will compare and analyze them based ... Read More

Is there a case when finally block does not execute in Java?

Shriansh Kumar

Shriansh Kumar

Updated on 09-Apr-2025 19:24:41

2K+ Views

Questions related to Java exception handling are very frequent in interviews for many companies and even in exams. One such question that an interviewer might ask is whether there is a case when the finally block does not execute in Java. We will try to find the answer to this ... Read More

JavaScript Program for Left Rotation and Right Rotation of a String

Shriansh Kumar

Shriansh Kumar

Updated on 21-Jan-2025 12:53:37

1K+ Views

To implement left rotation and right rotation of a string, we can use various approaches to implement this problem. Left rotation of a string means anti-clockwise movement of the given number of characters and right rotation of the string means clockwise movement of the given number of characters. In this ... Read More

JavaScript Program to Check if a Given Year is Leap Year

Shriansh Kumar

Shriansh Kumar

Updated on 17-Jan-2025 10:27:10

2K+ Views

To check if a given year is leap year, We have used two approaches in this article. A leap year has 366 days. In every 4th year, an additional day is added to the month of February to synchronize it with astronomical year. In this article, we are given with ... Read More

Java Program for Reversal algorithm for right rotation of an array

Shriansh Kumar

Shriansh Kumar

Updated on 07-Jan-2025 18:53:59

323 Views

An array is a linear data structure that stores a group of elements with similar datatypes, in a sequential order. Once we create an array, we can’t change its size, i.e., it can store a fixed number of elements. In this article, we will learn how to write a Java program ... Read More

JavaScript program to retrieve clients IP address

Shriansh Kumar

Shriansh Kumar

Updated on 08-Oct-2024 17:20:26

1K+ Views

Internet Protocol address, in short, IP address, is a unique address represented by a string of numbers that identifies a device on the internet or a local network. In JavaScript, we can retrieve a client's IP addresses using a 3rd parties API services such as ipify or ipapi. We can ... Read More

JavaScript how to get an alert to appear when I click on a button in a class?

Shriansh Kumar

Shriansh Kumar

Updated on 04-Oct-2024 14:51:12

2K+ Views

An alert in JavaScript is a dialog box that is displayed to the user when some important information or warnings needs to be notified. It may contain a message along with OK button. When you click on the OK button, it will dismiss the dialog. Clicking a button triggers an ... Read More

Java Program to display upper triangular matrix

Shriansh Kumar

Shriansh Kumar

Updated on 30-Sep-2024 16:07:07

1K+ Views

In this article, we will understand how to display an upper triangular matrix of a given matrix in Java. A matrix has row and column arrangement of its elements. A matrix with m rows and n columns can be called as m × n matrix. And, the term upper triangular ... Read More

JavaScript: How to check if a number is even without using the modulo operator?

Shriansh Kumar

Shriansh Kumar

Updated on 30-Sep-2024 16:04:55

1K+ Views

For a given integer number, write a program in JavaScript to check whether a number is odd or even and return the same to the user. It’s pretty easy to check whether a number is even by using the modulo operator. But, in this article, we will be checking whether ... Read More

Java program to check order of characters in string

Shriansh Kumar

Shriansh Kumar

Updated on 30-Sep-2024 16:03:43

2K+ Views

You are given a String, your task is to write a program in Java that checks the order of its characters. If the order is previously defined, you have to check if the characters are in the given order otherwise check for alphabetical order. Let's understand the problem statement with ... Read More

Advertisements