What did you mean by "constant variable"?
You can declare a 'variable' with final keyword if you find it's appropriate for your design. The thing is you will have to instantiate the class before you can access a non-static variable.
Here you can access 'X' as in SomeClass.X But if you have omitted the use of 'static', X will be bounded to the objects created of SomeClass, and thus you will need to have an object of SomeClass before accessing X
There is a reason for each of the key words or modifiers that you may not realize in the relatively simple, single class?, programs you've written so far, but it's important to understand their purpose and proper application in more complex code.
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795