Cisco interview question

What are the differences between sleep and wait methods? ( Java )