1.

What are pure and impure expressions in java​

Answer»

A pure function may not change the variable it's PASSED. An impure function does, so for example if you PASS the variable x to the function int addOne(x);, add ONE could return x + 1, and not change x(pure), or addOne(x); could increment x by one, so the value of the variable x is now changed.Hope this helps u ❤️THNXX MY ANSWERS ❤️



Discussion

No Comment Found