Freddie Mac interview question

What is Java, and when would you use it?