I came across the code:
synchronized(Account.this)
{}
where Account is a class.
Does Account.this mean any current instance of class Account?
I came across the code:
synchronized(Account.this)
{}
where Account is a class.
Does Account.this mean any current instance of class Account?
Normally it is used inside of an inner class: It means the
thisinstance of the outerAccountclass.Writing
thisby itself will return the instance of the inner class, not the outer class.