Customized Remote Work Solutions From the World’s Largest Fully Remote CompanyCustomized Remote Work SolutionsLearn More

Java

Showing 10-18 of 39 results
EngineeringIcon ChevronBack-end

Top 10 Most Common Spring Framework Mistakes

by Toni Kukurin

Java's open source Spring framework is a popular tool for creating high performing applications using plain old Java objects, but as with any tool, inappropriate use can lead to trouble. In this article, we cover the most common pitfalls of using the Spring framework so new and experienced developers alike have a roadmap of what to avoid.

13 minute readContinue Reading
EngineeringIcon ChevronBack-end

Write Fat-free Java Code with Project Lombok

by Miguel García López

Java has some idiosyncrasies of its own and design choices that can make it rather verbose. While Java is a mature and performant programming language, developers frequently need to write boilerplate code that bring little or no real value other than complying with some set of constraints and conventions. In this article, Toptal Freelance Software Engineer Miguel García López shows how Project Lombok can help dramatically reduce the amount of boilerplate code that needs to be written in a Java application.

13 minute readContinue Reading
EngineeringIcon ChevronBack-end

A Unit Testing Practitioner's Guide to Everyday Mockito

by Ivan Pavlov

Using Mockito is not just a matter of adding another dependency. It requires changing how you think about your unit tests while removing a lot of boilerplate. In this article, we'll cover multiple mock interfaces, listening invocations, matchers, and argument captors, and see firsthand how Mockito makes your tests cleaner and easier to understand.

21 minute readContinue Reading
EngineeringIcon ChevronBack-end

A Guide to Robust Unit and Integration Tests with JUnit

by Joshua Hayden

Automated software tests are critically important to the long-term quality, maintainability, and extensibility of software projects, and for Java, JUnit is the path to automation. While most of this article will focus on writing robust unit tests and utilizing stubbing, mocking, and dependency injection, Toptal Software Engineer Josh Hayden will also discuss JUnit and integration tests.

19 minute readContinue Reading
EngineeringIcon ChevronBack-end

How Hibernate Almost Ruined My Career

by Grzegorz Gajos

Are you building the next big thing? Planning to become the next Facebook or Google? Are you at the point of making fundamental decisions that will stay with you for the entire project? There is a good chance that you will pick a robust language like Java. If so, you want to pick the best object-oriented abstraction of your flexible data model because you don’t want to deal with plain SQL. You want to support all kinds of data and ideally, support all kind of databases. If so, there’s is only one right choice for you: Hibernate. Continue reading the story written by Freelance Software Engineer Grzegorz Gajos, about one of these imaginary but entirely possible scenarios.

10 minute readContinue Reading
EngineeringIcon ChevronMobile

Meet RxJava: The Missing Reactive Programming Library for Android

by Christopher Arriola

Implementing applications that deal with complex concurrent behavior has always been a challenging aspect of programming. Various paradigms exist that promise a solution to this problem in different ways. RxJava is a Java library that enables Functional Reactive Programming in Android development. It raises the level of abstraction around threading in order to simplify the implementation of complex concurrent behavior. In this article, Toptal Freelance Software Engineer Christopher Arriola gives us a detailed walkthrough of RxJava and how it fits into the realm of Android development.

12 minute readContinue Reading
EngineeringIcon ChevronBack-end

Java in the Cloud: Continuous Integration Setup Tutorial

by Matko Šuflaj

More than two decades ago, Java shook the world with its "Write once, run anywhere“ slogan. Today, Java developers have at their disposal a whole set of tools, such as Spring Boot, Docker, Cloud, Amazon Web Services, and Continuous Delivery, to take development and delivery to a whole new universe. In this article, Toptal Freelance Software Engineer Matko Šuflaj presents all these technologies and guides us through a step-by-step tutorial on how to build a small microservice and prepare it for continuous integration in the cloud.

18 minute readContinue Reading
EngineeringIcon ChevronBack-end

Why Should Java Developers Give Grails a Chance?

by Gregor Ambrozic

Java may have stood the test of time, but it can still be a source of great frustration among many web developers. Dealing with its verbosity and infrastructure overhead, for example, can take hours, even for the most basic needs. In this article, Toptal Freelance Software Engineer Gregor Ambrozic shows us how Grails and its many appealing features can be a viable alternative to traditional Java web applications frameworks.

9 minute readContinue Reading
EngineeringIcon ChevronBack-end

How to Build a Multitenant Application: A Hibernate Tutorial

by Andre Hildinger

In the realm of enterprise software, especially for software provided as a service, multitenancy ensures that data is truly isolated for each client within a shared instance of software. Among its numerous benefits, multitenancy can greatly simplify release management and cut down costs. In this article, Toptal Freelance Software Engineer André William Prade Hildinger shows us how Hibernate, a persistence framework for Java, makes implementing a multitenant Java EE application easier than it sounds.

8 minute readContinue Reading

Join the Toptal® community.