This content has been marked as final. Show 3 replies
One is static and one isn't. What did you think?
As I recall, non-static methods lock on the object, whereas static methods lock on the class object, if that's what you're wondering about.
i just want to know whether there is any difference between the two, other than what u have mentioned.
No, there is no other difference.