ICSE Class 10 Computer Applications
Question 9 of 30
Solved 2024 Question Paper ICSE Class 10 Computer Applications — Question 14
Back to all questionsPure method
Reason — A pure method in Java is a method that:
- Returns a value based only on its input arguments.
- Does not modify any external variables or system state.
- Does not change any class fields or input values.
In the context of reversing a number, a pure method accepts the number as input and returns its reversed form without altering any external state.