Ok.
I know when a var is declared it belongs to class wherever you called in the class its value is the same unless n untill you changed.
I just got confused in displ () z = 35 ------------ static
word was not written with z.
so i asked.
Anyway i ll take your advice.
This what happens when i try to practice code i came to know where i stand in
java concepts.
Thank you.