Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Math & Sciences (https://www.askmehelpdesk.com/forumdisplay.php?f=402)
-   -   "Most of the functions use global data in java." (https://www.askmehelpdesk.com/showthread.php?t=606107)

  • Oct 22, 2011, 09:50 PM
    Y_Nessi
    "Most of the functions use global data in java."
    What does this sentence mean? Can explain me more clearly.
  • Oct 23, 2011, 06:24 AM
    Unknown008
    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.

  • All times are GMT -7. The time now is 03:34 AM.