Light
Precedence refers to the order in which variables or statements are evaluated or executed in programming. When there are multiple variables with the same name but different scopes, precedence determines which one takes priority over another.
A local variable has lower precedence than global variables if they share the same name.
Global Variable: A global variable has higher precedence than local variables if they share the same name.
Methods can also have different levels of precedence depending on their invocation or calling order within the program.