Frage im Vorstellungsgespräch bei Cognizant

what are threads in java. diff b/w sleep and wait