How long will a variable remain being a variable?

Let's say that I power up an Arduino that will not power off in a decade and store a string on a variable, will the variable value/string still be there? Or, over time, will it decay and become corrupt?

What other things should I be looking for if I'd like to run an Arduino non stop? Like long vars, long numbers and increments? Possible hung avoidance for rookies?

Jesus handed me a 5v battery and about a million amps that last 10 years.
Thanks.

millis() timers will have to be written to deal with rolling over.

As for the part about decay I have no idea. It is a interesting question.

Decay, it's right in the datasheet:

Data retention: 20 years at 85 degree C, 100 years at 25 degree C(1)

I don't see anywhere what Note (1) is.

gpop1:
millis() timers will have to be written to deal with rolling over.

They already handle rollover.

Pringles:
What other things should I be looking for if I'd like to run an Arduino non stop? Like long vars, long numbers and increments? Possible hung avoidance for rookies?

Don't use the String class. Be careful with, or don't use, dynamic memory allocation.