java - Advantages of library -


i have 1 java file numbers of functions around 30-40 use commonly, thinking make external library of it.

but want know what advantages of making library except not need import java file, there performance advantage of making library?

libraries , frameworks have these advantages:

  1. reduce size of class files (code can extracted , moved elsewhere don't disturb anyone).
  2. cleaner api since can't leak internal fields
  3. you can test library independent of application. if library good, bug must in app. reduces test , debug time.
  4. you can reuse library in several projects.

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -