Many things in programming sound like they should be easy, but are quite hard. Calculating elapsed time in Java is one of those. How hard could that be? As it turns out, it can be tricky. For starters, we have the fact that time itself is a tricky concept. For a quick example, remember that many places around the world …
Java Profilers: Why You Need These 3 Different Types
Debugging performance issues in production can be a pain and, in some cases, impossible without the right tools. Java profiling has been around forever, but the java profilers most developers think about are only one type: standard JVM profilers. However, using one type of profiler is not enough. Suppose you’re analyzing your application’s performance. There are multiple profiling activities which …
Java Performance Monitoring Tools: 9 Types of Tools You Need to Know!
Monitoring an application’s performance is one of the hardest challenges in software development. That’s true for virtually any programming language and platform. Java performance monitoring presents some unique challenges of its own. For instance, one of those challenges has to do with garbage collection. Java features automatic memory management, which frees the developer from having to manually dispose of obsolete …
Equality in Java: Operators, Methods, and What to Use When
Equality is an essential concept when programming, not only in Java but in pretty much all programming languages. After all, much of what we do when writing code has to do with comparing values and then making decisions based on the results of such comparisons. Unfortunately, dealing with equality can often be tricky, despite being such a vital part of …
What Is Spring Boot?
Spring Boot is an open-source micro framework maintained by a company called Pivotal. It provides Java developers with a platform to get started with an auto configurable production-grade Spring application. With it, developers can get started quickly without losing time on preparing and configuring their Spring application. This post will guide you through understanding what Spring Boot is and what …
A Look At 5 of the Most Popular Programming Languages of 2019
If you’re a software developer, then you probably—every now and then—feel overwhelmed by the super-fast pace at which our industry evolves, and that’s fine. I certainly feel that way sometimes, especially when trying to keep up with the latest trends. But it’s possible to be well-informed about what’s going on out there, and use that information to your advantage, by …
9 Best Practices to Handle Exceptions in Java
Exception handling in Java isn’t an easy topic. Beginners find it hard to understand and even experienced developers can spend hours discussing how and which Java exceptions should be thrown or handled. That’s why most development teams have their own set of rules on how to use them. And if you’re new to a team, you might be surprised how …
11 Simple Java Performance Tuning Tips
It’s one thing to write code that works. But what about clean, readable, concise code? That’s another thing entirely. To create an app that solves one problem? Not that hard. What about one that not only solves the problem, but it’s also easy and pleasurable to use? Now we’re talking. You could apply the same reasoning for many software properties, …
JBoss Performance Monitoring: The Complete Guide
Ensuring your apps work as designed and deliver a productive user experience starts with monitoring applications metrics. This helps you understand whether your software is performing at optimal levels. Many developers use JBoss (now called WildFly and maintained by Red Hat) to build, deploy, and host transactional applications written in Java. JBoss boasts several awesome features, like fast startup speeds, lightweight functionality, …
Java 12: New Features and Enhancements Developers Should Know
Oracle will soon roll out Java 12 in March 2019 and new releases will drop once every six months thereafter. The goal is to make new releases more frequent for the Java ecosystem, with certain releases earmarked as long-term support (LTS). And by support, we mean the allocation of update releases for bug fixes and critical security patches. This latest …
Java Logs: 4 Types of Logs You Need to Know
Logging is an important topic in software development, especially if you need to analyze bugs and other unexpected events in your production environment. Implementing your logging often seems easy. But as you probably experienced yourself, logging is far more complex than it might seem. That’s why you can find lots of articles about it here on the blog. As an …
SLF4J: 10 Reasons Why You Should Be Using It
What Is SLF4J and What are the Benefits of Using It? One of the most important aspects of developing an efficient system is to have clean, helpful logs that will help you understand what errors are being triggered, and what information is being processed. When you are first creating an application, you might not know what logging framework will be …
Top Java Application Servers: Tomcat vs. Jetty vs. GlassFish vs. WildFly
 If you want to write a Java web application, the first thing you’ll need to do is make a difficult decision: choosing the Java application server on which your application will run. This is a tough choice because there are many outstanding ones out there, and the differences between them aren’t always obvious. It’s easy to wind up in a state of …
Java Logging Frameworks: log4j vs logback vs log4j2
If you ever had to analyze an issue in production, I’m sure you know how important it is to have good logging. Good logging requires three things: The log messages need to provide the required information to understand what the application does internally. Writing log messages has to be as efficient as possible so that it doesn’t affect the performance …
Types of Exceptions in Java
 Java is an object-oriented programming language. It provides support for various mechanisms such as exception handling. This feature of Java enables developers to manage the runtime errors caused by the exceptions. In this article, you will learn about exceptions in Java. You will also learn about different types of exceptions in Java. Exceptions are the unwanted errors or bugs or …
Top 10 Java Debugging Tips
One of the biggest nightmares for all developers is to debug their code. Debugging code written in Java is a tough task. Debugging is the process of determining and fixing bugs or errors present in the code, project, or application. Debugging your application helps you improve the quality of the code. It is a must-have skill for every Java programmer. …
Learn Java: Tutorials for Beginners, Intermediate, and Advanced Programmers
If you want to be a developer, create applications, or learn how to code, then Java is the best programming language to work with. In this article, we will introduce some of the best Java tutorials for beginners as well as advanced programmers. These tutorials will help you to learn and nourish your programming skills in Java. But first, we’ll …
MongoDB Tutorial: Get Going from Scratch Using Java
 There are numerous database systems that take a non-tabular NoSQL approach to handle data management. One of the most popular is MongoDB, which is used in various industries. While MongoDB is only the playground for Ruby on Rails or Node.js developers, using MongoDB with a modern Java framework like Spring Boot results in a powerful tool in the problem-solving arsenal. …
What’s New in Java 10
Java 10 overview March 2018 saw the latest semi-annual release of Java: Java 10. In this article, we’ll examine the big changes introduced in this version, as well as talk about some of the smaller improvements that will make life easier for developers and ops alike. Java 10: Big changes The two big stories in Java 10 are: the new …
A Start to Finish Guide to Docker with Java
Intro to managing and running a containerized Java Spring Boot application Docker is a platform for packaging, deploying, and running applications in containers. It can run containers on any system that supports the platform: a developer’s laptop, systems on “on-prem,” or in the cloud without modification. Images, the packages Docker uses for applications, are truly cross-platform. Java microservices are a …