Ask Question
19 October, 12:45

What is the primary benefit of writing generic classes and methods? Question 18 options: Generic classes and methods are more type-safe Generic classes and methods are shorter Generic classes and methods are faster Generic classes and methods are backwards compatible

+1
Answers (1)
  1. 19 October, 14:05
    0
    1. Generic code:

    Reversibility principle says that write code in manner where you can use as much as you can and never ever reinvent the wheel (never rewrite the code). Not using generic code will result in redundant coding which means rewriting the lines again and again.

    2. Methods:

    1. Methods are again a nice way to use generic code.

    2. Increase programming speed as many of languages methods uses cache memory.

    3. Methods are called in stacks and thus uses less memory.

    4. Structural programming is achieved by them.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the primary benefit of writing generic classes and methods? Question 18 options: Generic classes and methods are more type-safe ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers