Answer:
Operating system is the software that is used to control different hardware of computers and handle scheduled tasks.
It also handles the interrupts from some external devices, or from some software. The interrupts are handled through Interrupt service routine. When some external event occurs the following steps has been taken by OS to perform the operation
- In first step, an external event has been occurred, and request to the cpu to perform operation.
- This request invoke ISR (Interrupt service routine), to perform the operation.
- The interrupts are stored in stack on the priority basis.
- The CPU performs the operation on Interrupt as per request of ISR.
- After Completing operation, CPU return to its initial task.
Answer:
"void" is the correct answer for the given question.
Explanation:
In the function body the value of balance variable is not return that means we use void return type .The void return type is used when the function does not return any value .
If the function are int return type that means it return "integer value ".
if the function are double return type that means it return the "double value" .
The complete implementation of this method is
public void deposit(double amount) // function definition
{
balance = balance + amount; // statement
}