While setting up java and maven paths from computer-->properties--->a
why we have to give
JAVA_HOME and M2_HOME in user variables(till root just before bin)
appending path till bin under system variables.
my main question is how user variables and system variables are different. which one to use when and how?