Factorial Program in Java using While loop iterative method

java factorial program while loop

In this tutorial we will learn writing Java program to calculate Factorial of given number using while loop. Here basically we will be using iterative approach which is different from recursive approach. Please check this Program Factorial Program in java using recursive method. Factorial Program in Java using for loop iterative method. Factorial Program in … Read more

Factorial program in Java using recursion

Factorial Program Using Loop And Recursion in java

In this tutorial we are going to learn writing java program to calculate the Factorial of a given number using recursion. You can also check : Factorial program in java using Iterative method. What is Recursion? Recursion is a method that defines something in terms of itself, which means it is a process in which … Read more

What is Deadlock in OS? Explain with the help of a diagram.

A deadlock is a condition where each of the processes is waiting for a resource which is allotted to other processes. In this case, the process gets computed after the resource it requires is controlled by other processes, which is also looking for some other resource to be issued. For example, suppose two freight trains … Read more

Preemptive and Non-Preemptive Algorithm in Operating System

Preemptive Scheduling Algorithm Here, a scheduler can preempt a running low-priority process at any time when a high-priority process enters a ready state. In preemptive systems, the OS takes the processor away from a running process. If the algorithm assumes one of the following circumstances, it is a preemptive algorithm – When a process transitions … Read more

CPU scheduling algorithms Criteria in Operating System

There are different criteria for the CPU scheduling algorithm. CPU scheduling algorithms Criteria are CPU utilization: The main purpose of every scheduling algorithm is to keep the CPU busy. The utilization of the CPU can range from 0 to 100. CPU utilization is the percentage of the time interval in which the processor is busy … Read more

Explain the Architecture of Oracle Database system

The oracle database is a centralized repository where data is stored. The Oracle database has a physical structure that is visible to the operating system and is made up of the Operating system’s files and logical structure that is recognized by the oracle server. The user while requesting any request any information from oracle database, … Read more

Hi, Welcome back!
Forgot Password?
Don't have an account?  Register Now