Justin Timberlake and Cameron Diaz are dance partners again ... on film at least.

Justin Timberlake & Cameron Diaz
Entertainment Weekly got the first pic of the former couple working together on set for their new movie "Bad Teacher" where the two play teachers at the same school.

Class is in session.