r/javahelp • • Dec 08 '20

Popular Java frameworks worth learning ?

For people that have been using Java in a work environment or that are looking for employment , What java libraries should I pick up as a recent graduate ?

17 Upvotes

30 comments sorted by

View all comments

5

u/Fenxis Dec 08 '20 edited Dec 08 '20

On a lighter end of the scale the Google Guava and Apache Commons libraries can save you from coding a ton of error prone Util methods.

My first stop with a issue is to Google "java <problem>Util" (ExceptionUtil, StringUtil, ArrayUtil) and something will pop up. A bit less needed with newer Java versions adding default methods to Interfaces but still useful.

2

u/E3FxGaming Dec 08 '20

Ok, if Spring is on the high end of the scale and Google Guave + Apache Commons are on the lighter end, then my suggestion is probably somewhere in between:

An ORM (object-to-rationale-mapping) framework. Correctly set up, they can save a ton of time. While most of them can do a lot more, their basic functionality boils down to: you have a database + you have your Java program -> query data from the database and map the results to Java object instances, and when you make changes to those Java object instances it takes care of changing the data in the database.

Hibernate is the most popular ORM framework for Java, it is however said to be a bit difficult. IMHO you can start with any ORM framework, (for spare time projects I started with Apache Cayenne and switched to ktorm after getting used to Kotlin), just be aware of that Hibernate will help you the most of all the ORM frameworks in a work environment.