Yes. They can have non static variables.
Type: Posts; User: Mr.777
Yes. They can have non static variables.
Do you think m is static? NO!!!
m is being passed as argument to fill() of Class D and class D doesn't even know m. Your concept about static is wrong. This method you have tried is called value...
NO!!!!
And did you try it?
Static blocks or methods are executed before everything else in your program and non static variables take memory when they are called, so does the static. Well, let's have an example;
Let's say we...