Pregunta de entrevista de Tata Consultancy Services (North America)

What is the difference between java and python?

Respuesta de la entrevista

Anónimo

14 de nov de 2019

In java there are data types, we need to mention them at time of declaration. In python there is no need to mention a data type. It will consider a variable type according to the value we store in it. In java scope is considered according to the braces but in python for considering scope intendation is compulsory.