Top Twenty Libraries As Well As Apis Coffee Developer Should Know

Advertisement

Masukkan script iklan 970x90px

Top Twenty Libraries As Well As Apis Coffee Developer Should Know

Kamis, 03 Mei 2001

One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of API, including JDK in addition to third-party libraries. I spent a practiced bargain of fourth dimension learning API, specially subsequently reading Spring in addition to Hibernate because they are pretty good known in addition to receive got specific features.

I am mostly including useful libraries for twenty-four hours to twenty-four hours materials e.g. logging libraries similar Log4j, JSON parsing libraries similar Jackson, in addition to unit of measurement testing API e.g. JUnit in addition to Mockito. If yous demand to utilisation them inwards your projection in addition to thus yous tin either include JARs of these libraries inwards your project's classpath to commencement using them or yous tin utilisation Maven for dependency management.

When yous utilisation Maven for dependency management, in addition to thus it volition automatically download these libraries, including the libraries they depend, known every bit the transitive dependency.

For example, if yous download Spring Framework in addition to thus it volition also download all other JARs on which Spring is dependent e.g. Log4j etc.

You mightiness non realize but having the correct version of dependent JARs is a big headache. If yous receive got incorrect versions of the JAR in addition to thus yous volition acquire ClassNotFoundException or NoClassDefFoundError, or UnsupportedClassVersionError.

Btw, If yous are a beginner or intermediate Java programmer in addition to thus I also advise yous to bring together The Complete Java MasterClass course of report on Udemy to fill upwards the gaps inwards your knowledge. It's 1 the most up-to-date course of report inwards Java in addition to updated for Java 7, 8, 9, 10, in addition to xi recently.




20 Useful Open Source libraries for Java Programmers

Here is my collection of to a greater extent than or less of the useful third-party libraries Java developers tin utilisation inwards their application to do a lot of useful tasks. In guild to utilisation these libraries, Java developer should also hold upwards familiar alongside that in addition to this is the whole betoken of this article. If yous receive got an see in addition to thus yous tin enquiry most that library in addition to utilisation it.


1. Logging libraries
Logging libraries are real mutual because yous demand them inwards every project. They are the most of import affair for server-side application because logs are solely placed where yous tin run across what's going on your application. Even though JDK ships alongside its ain logging library, at that spot are many improve alternatives are available e.g. Log4j, SLF4j, in addition to LogBack.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know


Influenza A virus subtype H5N1 Java developer should hold upwards familiar alongside pros in addition to cons of logging library in addition to know why using SLF4j is improve than manifestly Log4j. If yous don't know why I advise yous read my before article on the same subject.


2. JSON parsing libraries
In today's the world of spider web services in addition to cyberspace of things (IoT), JSON has acquire the go-to protocol to deport information from customer to server. They receive got replaced the XML every bit the most preferred agency to transfer information inwards a platform-independent way. Unfortunately JDK doesn't receive got a JSON library nonetheless but fortunately, at that spot are many practiced third-party libraries which allows yous to both parse in addition to create JSON messages e.g. Jackson in addition to Gson.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know

Influenza A virus subtype H5N1 Java spider web developer should hold upwards familiar alongside at to the lowest degree 1 of these libraries. If yous desire to know to a greater extent than most Jackson in addition to JSON, I advise going through JSON alongside Java API course of report from Udemy, which they are offering inwards simply $10.99 on their New Year's Day Sale.


3. Unit testing libraries
Unit testing is the unmarried most of import affair which separates an average developer from a practiced developer. Programmers oftentimes are given excuses for non writing unit of measurement tests but the most mutual excuse for avoiding unit of measurement testing is lack of sense in addition to cognition of pop unit of measurement testing library e.g. JUnit, Mockito, in addition to PowerMock.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know

 I receive got a finish inwards 2019 to improve my cognition of unit of measurement testing in addition to integration testing libraries e.g. JUnit 5, Cucumber, Robot framework etc.

I receive got also signed upwards for a JUnit in addition to Mockito Crash Course in Udemy. Even if yous know JUnit in addition to basics of unit of measurement testing, yous may desire to refresh in addition to upgrade your cognition inwards 2019.


4. General purpose libraries
There is a duet of real practiced full general purpose, third-party library available to Java developer e.g. Apache Commons in addition to Google Guava. I e'er include these libraries inwards my projects because they simplify a lot of tasks. As Joshua Bloch has rightly said inwards Effective Java (now the 3rd edition is also available) that at that spot is no betoken inwards re-inventing the wheels in addition to nosotros should prefer using tried in addition to tested libraries instead of writing our ain routines every straight off in addition to then.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know

It's simply for a practiced Java developer to acquire himself familiar alongside Google's Guava in addition to Apache common library.


5. Http libraries
One affair I don't similar much most JDK is their lack of back upwards for HTTP. Though yous tin brand HTTP connexion using classes inwards java.net packet it's non every bit piece of cake in addition to seamless every bit past times using opened upwards source, third-party libraries similar Apache HttpClient in addition to HttpCore.

Though JDK nine is bringing the back upwards of HTTP 2.0 in addition to improve back upwards for HTTP, I strongly advise all Java developers acquire familiar alongside pop HTTP customer libraries e.g. HttpClient in addition to HttpCore.

You tin also check What's New inwards Java nine - Modules in addition to More to acquire to a greater extent than most JDK 9's HTTP 2 support.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know



6. XML parsing libraries
There are many XML parsing libraries exists e.g. Xerces, JAXB, JAXP, Dom4j, Xstream etc. Xerces2 is the side past times side generation of high performance, fully compliant XML parsers inwards the Apache Xerces family. This novel version of Xerces introduces the Xerces Native Interface (XNI), a consummate framework for edifice parser components in addition to configurations that is extremely modular in addition to piece of cake to program.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know

The Apache Xerces2 parser is the reference implementation of XNI but other parser components, configurations, in addition to parsers tin hold upwards written using the Xerces Native Interface. Dom4j is to a greater extent than or less other flexible XML framework for Java application. If yous desire to acquire to a greater extent than most XML parsing inwards Java in addition to thus I advise yous accept a await at Java Web Services in addition to XML online course of report on Udemy. It's currently available for solely $10.99 on sale.


7. Excel reading libraries
Believe it or non but all real-world application has to interact alongside Microsoft business office inwards to a greater extent than or less cast or other. Many application needs to render functionality to export information inwards Excel in addition to if yous receive got to do same from your Java application in addition to thus yous demand Apache POI API.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know

 This is a real rich library which allows yous to both read in addition to write XLS files from Java program. You tin run across that link for a working instance of reading Excel file inwards Core Java application.


8. Bytecode libraries
If yous are writing framework or libraries which generate code or interact alongside bytecodes in addition to thus yous demand a bytecode library. They allow yous to read in addition to modify bytecode generated past times an application. Some of the pop bytecode libraries inwards Java the world are javassist in addition to Cglib Nodep.
 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know
The Javassist (JAVA programming ASSISTant) makes Java bytecode manipulation real simple. It is a course of report library for editing bytecodes inwards Java. ASM is to a greater extent than or less other useful bytecode editing library.



9. Database connexion puddle libraries
If yous are interacting alongside the database from Java application but non using database connexion puddle libraries in addition to thus yous are missing something. Since creating connections at runtime takes fourth dimension in addition to makes asking processing slower, its e'er advised to utilisation DB connexion libraries. Some of the pop ones are Commons Pool in addition to DBCP.


In a spider web application, it's spider web server which mostly provides these functionalities but inwards gist Java application yous demand to include these connexion puddle libraries into your classpath to utilisation database connexion pool. If yous desire to acquire to a greater extent than most JDBC in addition to connexion puddle inwards a spider web application, I advise yous accept a await at JSP, Servlet, in addition to JDBC for Beginners course of report inwards Udemy.



10. Messaging libraries 
Similar to logging in addition to database connection, messaging is also a mutual characteristic of many real-world Java application. Java provides JMS, Java Messaging Service but that's non component subdivision of JDK in addition to yous demand to include split upwards jms.jar. Similarly, if yous are using third-party messaging protocol e.g. Tibco RV in addition to thus yous demand to utilisation a third-party JAR similar tibrv.jar inwards your application classpath.




11. PDF Libraries
Similar to Microsoft Excel in addition to World, PDF is to a greater extent than or less other ubiquitous format. If yous demand to back upwards PDF functionality inwards your application e.g. exporting information inwards PDF files in addition to thus yous tin utilisation the iText in addition to Apache FOP libraries. Both render useful PDF related functionality but iText is richer in addition to improve in addition to I e'er preferred that one. See hither to acquire to a greater extent than most iText.


 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know



12. Date in addition to Time libraries
Before Java 8, JDK's information in addition to fourth dimension libraries receive got thus many flaws e.g they were non thread-safe, immutable, in addition to error-prone in addition to many Java developer relied on JodaTime for implementing their engagement in addition to fourth dimension requirement. From JDK 8, at that spot is no argue to utilisation Joda because yous acquire all that functionality inwards the JDK 8's new Date in addition to Time API itself but if yous are working inwards older Java version in addition to thus JodaTime is a worth learning library.


If yous desire to acquire to a greater extent than most novel Date in addition to Time API, I advise yous to delight cheque the  One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know
FastUtil is to a greater extent than or less other similar API, it extends the Java Collections Framework past times providing type-specific maps, sets, lists in addition to priority queues alongside a pocket-size retentiveness footprint in addition to fast access in addition to insertion; provides also big (64-bit) arrays, sets, in addition to lists, in addition to fast, practical I/O classes for binary in addition to text files.



14. Email APIs
The javax.mail in addition to Apache Commons Email - render an API for sending an email. It is built on locomote past times of the JavaMail API, which it aims to simplify.




15. HTML Parsing libraries
Similar to JSON in addition to XML, HMTL is to a greater extent than or less other mutual format many of us receive got to bargain with. Thankfully, nosotros receive got jsoup which greatly simplify working alongside HTML inwards Java application. You tin utilisation JSoup to non solely parse HTML but also to create HTML documents

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know

It provides a real convenient API for extracting in addition to manipulating data, using the best of DOM, CSS, in addition to jquery-like methods. jsoup implements the WHATWG HTML5 specification in addition to parses HTML to the same DOM every bit modern browsers do.



16.Cryptographic library
The Apache Commons Codec packet contains elementary encoder in addition to decoders for diverse formats such as Base64 in addition to Hexadecimal. In add-on to these widely used encoders in addition to decoders, the codec packet also maintains a collection of phonetic encoding utilities.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know



17. Embedded SQL database library
I actually beloved in-memory database similar H2, which yous tin embed inwards your Java application. They are swell for testing your SQL scripts in addition to running Unit tests which demand a database. Btw, H2 is non the solely DB, yous also receive got Apache Derby in addition to HSQL to select from.



18. JDBC Troubleshooting libraries
There are to a greater extent than or less practiced JDBC Extension libraries exists which makes debugging easier e.g. P6spy. It is a library which enables database information to hold upwards seamlessly intercepted in addition to logged alongside no code changes to the application. You tin utilisation these to log SQL queries in addition to their timings. For example, if yous are using PreparedStatment in addition to CallableStatement inwards your code in addition to thus these libraries tin log an exact telephone band alongside parameters in addition to how much fourth dimension it took to execute.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know



19. Serialization libraries
Google Protocol Buffer Protocol Buffers are a agency of encoding structured information inwards an efficient nonetheless extensible format. It's richer in addition to improve option to Java serialization in addition to I strongly recommend experienced Java developer to acquire Google Protobuf. You tin run across this article to acquire to a greater extent than most Google Protocol Buffer.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know


20. Networking libraries
Some of the useful networking libraries are Netty in addition to Apache MINA. If yous are writing an application where yous demand to do low-level networking task, visit using these libraries.

 One of the traits of a practiced in addition to experienced Java developer is the extensive cognition of  Top 20 Libraries in addition to APIs Java Developer should know


That's all most to a greater extent than or less of the useful libraries every Java developer should hold upwards familiar with. Java Ecosystem is real vast in addition to yous volition honor tons of libraries for doing dissimilar things. You intend most something in addition to yous volition honor at that spot is a library exists to do simply that. As always, Google is your best friend to honor useful Java libraries but yous tin also accept a await at Maven fundamental repository to honor to a greater extent than or less of the useful libraries for your business at hand.

If yous similar this article, yous may honor my other articles useful too:
10 Things Java Developer Should Learn inwards 2019
10 Programming Languages to explore inwards 2019
10 Frameworks Java in addition to Web Developers should acquire inwards 2019
20 Java Books You Can Read inwards 2019
10 Ways to Learn a  New Technology inwards 2019
10 PluralSight Courses for Java in addition to Web Developers
10 Tutorials to Learn Java 8 Better
10 tips to beocme a improve Java Programmer
10 Tools Java Developer Should Learn inwards 2019

Thanks for reading this article thus far. If yous similar this article in addition to thus delight percentage alongside your friends in addition to colleagues too. If yous receive got whatsoever feedback or questions in addition to thus delight drib a note. 

P.S. - If yous desire to commencement 2019 inwards practiced banking concern annotation in addition to thus I advise yous to bring together The Complete Java MasterClass, 1 the most up-to-date courser. It's non updated for Java 7, 8, 9, 10, in addition to xi recently.