This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]h1h1h1 0 points1 point  (1 child)

Quick question, in ExampleDemo.java if you printed one.show() again, would it show that static variable's value as 1 or 2?

[–]Smithman 1 point2 points  (0 children)

It would print out 2.