There are different types of variables in the Application Engine people code?

     Local variable – these are available for the duration of the program in which they are declared.
     Global / Component – These variables are available while the Application Engine program is running. They are saved at commits and checkpoints,

     So they can be used for restarts. Component variables are same as Global incase of the AE.