- 1
What is the difference between static int variable and normal int variable??
7 Answers
+ 2
it's okay. đ
+ 2
This depends entirely on the context. For example, a static global variable does not mean the samething as a static variable inside a function.
+ 1
static variables can only be declared in the class but must be outside the block statement and you can access the static variable without creating the object first. normal variable? what you mean local variables, if yes, local variables can only be declared in block statements like method / if / else / etc and the local variable's active period is inside the statement block itself.
+ 1
OK thank u Zeron
+ 1
OK squared... thank u
+ 1
OK aklex