Skip to content

Commit 90247d6

Browse files
committed
Add explanation for lock in synchronized method option
1 parent 47100fe commit 90247d6

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/bank-account/.approaches/synchronized-statements

1 file changed

+1
-1
lines changed

exercises/practice/bank-account/.approaches/synchronized-statements/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int getBalance() throws BankAccountActionInvalidException {
9393
}
9494
```
9595

96-
This is the same as using a synchronized method.
96+
This is the same as using a [synchronized method][approach-synchronized-methods], which requires a lock on the same `this` object to run the method.
9797
For example:
9898

9999
```java

0 commit comments

Comments
 (0)