📜 ⬆️ ⬇️

Java Developer Corner: Everyday Library

For all the time spent writing Java code, I have developed a specific set of useful third-party libraries that are firmly entrenched in the classpath, and without which not a single development day can be done, whether writing something “on one knee” or working on a serious the project. This is not about “monsters” like Spring, Struts, Hibernate (that's another story), but rather about utilities that fill in the gaps in the Java SE API and save you a dozen or two extra lines of code / minutes here and there. I would like to share this information with the community - I hope it will be useful especially for those who are just starting to storm Java, and will allow a little, but increase productivity.

So, a list of the most frequently used classes and methods with comments:

Apache Commons: Collections
Very good library, in many respects supplementing Java SE Collections Framework. Very useful especially for those who are stuck in Java 2 SE 1.4.2 (sometimes it happens) because of “client requirements” and still dream of LinkedHashMap :)
Apache Commons: DbUtils
Apache Commons: IO
Working with files is not the strongest side of the platform that Java critics like to use (sometimes, deservedly). For example, a request to implement java.io.File.copy () has been hanging for 10 years. Commons IO partially rescues:
Apache Commons: Lang
Tools for working with strings, reflection, serialization, objects and system. Perhaps the most frequently used library from Apache Commons.
I will be glad to hear comments and your advice on the use of jar-s for every day.

')

Source: https://habr.com/ru/post/46687/


All Articles