+ 2
What is the difference "static int" and simple "int"?
static int X = 10; ï»ż int B=3;
2 Answers
+ 5
IN WHAT LANGUAGE?
+ 6
You didn't specify a language, but generally speaking when you declare a variable as static it will belong to the class itself and not just an instance of the class.
X in this case would have the same value for all instances of the class it is within.