Java is a statically typed language, it requires the user to define the type of the data before declaring the variable (Oracle). Thus, a programmer who may not know about generics, will end up re-writing the same class multiply times to create an object of integer, double and string in order to meet an application’s requirement. Therefore, it is important to have a good knowledge of generics in Java. Languages such as JavaScript or Python allow users to define the variable without defining the data type. As a result, a programmer can use the same class with different data types…

Menhajuddin Sharaf

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store