What is the purpose of `wait()` and `notify()` in Java synchronization?
`wait()` causes the current thread to release the lock and enter a waiting state, while `notify()` wakes up a thread that is waiting on the same object's lock.
Great! You've got it right. These methods are part of inter-thread communication, allowing one thread to signal another.
Can you explain the difference between `wait()` and `sleep()` in Java?