Rocket Software interview question

java vs javascript