Why Generic Programming ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why Generic Programming ?

Who Wants to Be a Generic Programmer?

3rd Jul 2017, 11:56 PM
islam sobhi
islam sobhi - avatar
1 Answer
+ 1
in relation to Java, generics are a way to get stronger compile time type checking, and allowing programs to work on a large set of types with reasonably short coding work. I have not studied the template system in C++. I'd imagine Java generics more or less does what templates do in C++ if I were to guess.
4th Jul 2017, 4:32 AM
Venkatesh Pitta
Venkatesh Pitta - avatar