Infosys interview question

they asked how is java better than python?