Computer Science, asked by horshamati, 4 months ago

difference between pure and impure function in java ​

Answers

Answered by mohantypreet2
2

Explanation:

In pure function it doesn't modify the external variable/data outside the scope and results the same output given in the same input. In impure function it mutates data/variable outside it's lexical scope Hope this helps

plz mark as brainleast

Similar questions