I am looking at sample code and the project basically uses ServerSockets for a simple BankAccount thing. The commands that the client will use are deposit withdraw and getBalance. These methods have:
public synchronized void deposit(double amount)
Can anyone please explain to me what synchronized does? Is it for the threads?
thanks
tk
public synchronized void deposit(double amount)
Can anyone please explain to me what synchronized does? Is it for the threads?
thanks
tk