By definition, encapsulation describes the idea of bundling data and methods that work on that data within one unit, like a class in Java.
OOP Concepts for Beginners: What is Polymorphism
Polymorphism describes the concept that you can access objects of different types through the same interface.
What Are OOP Concepts in Java? How They Work and More
OOP is one of the most fundamental programming concepts. Let’s explore the four main OOP concepts in Java and discuss how each works.
What to Do About Java Memory Leaks: Tools, Fixes, and More
Guide to arm you with the know-how to detect, avoid and fix memory leaks in Java.
Javascript – Currying VS Partial Application
In this article, we’ll explain the difference and practical usage of partial application and currying
How to Find Hibernate Performance Issues in Development and Production
The Java Persistence API (JPA) is used in most Java applications to interact with a relational database. One of its most popular implementations is the Hibernate ORM, because it uses object-relational mapping to abstract database interactions and makes implementing simple CRUD operations very simple. But this abstraction also has its downsides. Hibernate uses a lot of internal optimizations and hides …
A Step By Step Guide to Tomcat Performance Monitoring
Application server monitoring metrics and runtime characteristics are essential for the applications running on each server. Additionally, monitoring prevents or resolves potential issues in a timely manner. As far as Java applications go, Apache Tomcat is one of the most commonly used servers. Tomcat performance monitoring can be done with JMX beans or a monitoring tool such as MoSKito or JavaMelody. …
Top Java Software Errors: 50 Common Java Errors and How to Avoid Them
Imagine, you are developing Java software and suddenly you encounter an error? Where could you have possibly gone wrong? There are many types of errors that you will encounter while developing Java software, but most are avoidable. Some errors are minor lapses when writing codes but that is very much mendable. If you have an error monitoring tool such as …
How to Monitor CPU Memory and Disk Usage in Java
In this post, we will discuss some of the primary commands, tools, and techniques that could help to monitor CPU Memory and Disk Usage in Java.
What is the best way to profile a Java application in eclipse
Java profiling in Eclipse allows you to optimize your code, streamline your application, and better understand your program. When profiling your application using a line-level analysis, you can reveal the slowest line within a sluggish piece of code, helping you efficiently troubleshoot problems. There are a variety of platforms for profiling Java eclipse. Eclipse is a popular software and is …
What is Java Memory Analysis
Java memory analysis is an important process in checking the performance of a Java application. It helps Java developers ensure the stability of the application by checking the memory consumption. There are several factors to look into when doing memory analysis. But to get to the bottom of this process, it is vital to learn first how memory works. What …
Java Development Mistakes: Avoid These 7 Mistakes When Java Developing
Over time, Java has become a popular programming language in software development. Although Java is more popular with developers than C or C++, this programming language still has its problems. Here are seven Java development mistakes that developers can make and how you can avoid them. 1. Forgetting To Put “Break” In The Code “Forgetting the ‘break’ part can be detrimental …
Ways to Ensure App Security With Java Features
As important as adding new features, app developers need to start placing more emphasis on the security aspect of the applications they design. After all, more app features mean more data residing within an app. Without proper security controls in place, that data can be vulnerable to intruders.
SOLID Design Principles Explained: The Single Responsibility Principle
SOLID is one of the most popular sets of design principles in object-oriented software development. It’s a mnemonic acronym for the following five design principles: Single Responsibility Principle Open/Closed Principle Liskov Substitution Principle Interface Segregation Principle Dependency Inversion All of them are broadly used and worth knowing. But in this first post of my series about the SOLID principles, I …
A Guide to Java Streams in Java 8: In-Depth Tutorial With Examples
Overview The addition of the Stream was one of the major features added to Java 8. This in-depth tutorial is an introduction to the many functionalities supported by streams, with a focus on simple, practical examples. To understand this material, you need to have a basic, working knowledge of Java 8 (lambda expressions, Optional, method references). Introduction First of all, …
Top 10 Future Programming Languages
Programming languages have made applications more efficient and easy to use, raising user experience to the next level. Let’s look at the top programming languages defining the future of code and hiring trends. 1. Python Python is widely accepted as the best programming language for beginner developers as it is simple and easy to use and deploy. It is widely used …
10 of the Most Popular Java Frameworks of 2020
There are plenty of reasons why Java, being one of the older software programming languages, is still widely used. For one, the immense power one wields when using Java is enough to make it their staple. Couple that with the possibilities that using good Java frameworks bring and you could lessen the turnaround time for big projects. This post will …
5 Best Security Practices for Tomcat Servers
Tomcat servers are widely used application servers for today’s development architectures, popular for hosting Java based applications. Below is a guide on best security practices for security your Tomcat Server environment. 1. Beware of Banner Grabbing What is banner grabbing? Banner grabbing is the process of gaining information from computer systems including services, open ports, version, etc. How banner grabbing …
What Are Java Agents and How to Profile With Them
Java agents are a special type of class which, by using the Java Instrumentation API, can intercept applications running on the JVM, modifying their bytecode. Java agents aren’t a new piece of technology. On the contrary, they’ve existed since Java 5. But even after all of this time, many developers still have misconceptions about this feature—and others don’t even know …
Spring AOP Tutorial With Examples
You may have heard of aspect-oriented programming, or AOP, before. Or maybe you haven’t heard about it but have come across it through a Google-search rabbit hole. You probably do use Spring, however. So you’re probably curious how to apply this AOP to your Spring application. In this article, I’ll show you what AOP is and break down its key …