Log in

View Full Version : "Most of the functions use global data in java."


Y_Nessi
Oct 22, 2011, 09:50 PM
What does this sentence mean? Can explain me more clearly.

Unknown008
Oct 23, 2011, 06:24 AM
I don't do Java, but I think this relates to variables that you have set globally, as opposed to locally (i.e. in functions, procedures, etc). So, you can use a global variable without declaring it again in the functions/procedures.

I did some Tcl, and I always have to declare my global variables, otherwise, the variable is treated as a local variable which goes to garbage once the procedure is executed.