Manisha Chand has Published 34 Articles

Java program to find the product of two numbers using recursion

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 17:58:19

705 Views

In this article, we will understand how to find the product of two numbers using recursion in Java. A recursive function is a function that calls itself multiple times until a particular condition is satisfied. Product of two Numbers Using Recursion Recursion is the process of repeating items in a ... Read More

Java program to find sum of digits of a number using recursion

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 17:52:44

1K+ Views

In this article, we will understand how to find the sum of the digits of a number using recursion in Java. A recursive function is a function that calls itself multiple times until a particular condition or base condition is met. In programming languages, if a program allows you ... Read More

Java program to calculate the power using recursion

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 17:50:23

1K+ Views

To calculate the power of a number, Java provides different ways to do this using loops, built-in methods, and recursion. In this article, we will learn how to calculate the power of a number using recursion. In Java, Recursion is a process in which a function calls itself multiple ... Read More

Java Program to Find Factorial of a Number Using Recursion

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 17:05:44

886 Views

In this article, we will understand how to find the factorial of a number using recursion in Java. The factorial of a positive number is the product of the number itself and all descending positive integers up to "n". The factorial of a negative number does not exist, and the factorial of ... Read More

Java program to get input from the user

Manisha Chand

Manisha Chand

Updated on 18-Jun-2025 17:03:39

2K+ Views

In this article, we will understand how to get input from the user in Java. Java provides a built-in Scanner Class that belongs to the java.util package. The Scanner class is used to get user input. In this article, we will learn how ... Read More

Java Program to Display Prime Numbers Between Two Intervals

Manisha Chand

Manisha Chand

Updated on 17-Jun-2025 19:21:10

2K+ Views

In this article, we will understand how to find prime numbers between two intervals. Prime numbers are special numbers that have only two factors, 1 and itself, and cannot be divided by any other number. 11 is a prime number. Its factors are 1 and 11 itself. Some examples ... Read More

Java Program to Print the Multiplication Table in Triangular Form

Manisha Chand

Manisha Chand

Updated on 09-Jun-2025 13:21:42

357 Views

In this article, we will understand how to print a multiplication table in triangular form. To print in triangular form, the table will display row and column-wise. And in every row, entries will be up to the same column number. Below is a demonstration of the same - Input : ... Read More

Java Program to Display Factors of a Number

Manisha Chand

Manisha Chand

Updated on 09-Jun-2025 12:39:33

7K+ Views

In this article, we will understand how to display the factors of a number. Factors are numbers that divide the original number without leaving a remainder. For example, 1, 2, 3, 4, 6, and 12 are factors of 12. If a and b are factors of a number, then a ... Read More

How can we convert a JSONArray to String Array in Java?

Manisha Chand

Manisha Chand

Updated on 06-Jun-2025 12:43:59

3K+ Views

A JSONArray is a class provided by the org.json package that represents a collection of JSON values. These values can be of any type, such as strings, numbers, booleans, or even nested objects or arrays. If you do not know what JSON is, then you can ... Read More

Java Program to Implement Multiple Inheritance

Manisha Chand

Manisha Chand

Updated on 05-Jun-2025 11:10:33

15K+ Views

In this article, we will understand how to implement multiple inheritance. Unlike other programming languages, such as C++, Java does not support multiple inheritance through classes. This means that a class cannot inherit from more than one class. But why? Let's understand first what multiple inheritance ... Read More

Advertisements