What is reusability in Java with example?

How do you create reusable code?

  • Creating reusable code requires an investment of time and resources during development. Truly reusable code can be reused in new ways that differ substantially from the code’s original design intent. To support planned reuse, development teams need to spend additional time writing documentation for their code.

What is code reuse and why is it important?

  • Code reuse is the practice of using existing code for a new function or software. But in order to reuse code, that code needs to be high-quality. And that means it should be safe, secure, and reliable. Systematically developing high-quality reusable software components and frameworks is even harder.

How to improve the code re-usability?

  • The code re-usability is better achieved by use of interface and composition. – MaxZoomMay 2 '17 at 19:03 Add a comment | 1 Answer 1 ActiveOldestVotes

image-What is reusability in Java with example?
image-What is reusability in Java with example?
Share this Post: