Genpact interview question

differences between java and JavaScript