Page Replacement Algorithm like: FIFO,LRU (least recently used), LFU (least frequently used) program in Java:
Instruction to run the below program in windows OS:
1.save the program as .java in bin folder of jdk.
2.compile the program using ” javac “in cmd prompt
3.run the file using java command.
INPUT is: rectangle.java : SOURCE CODE: