Systems | Development | Analytics | API | Testing

How to Handle the <Identifier> Expected Error in Java

By definition, an identifier in Java is a sequence of one or more characters, where the first character must be a valid first character (letter, $, _) and each subsequent character in the sequence must be a valid non-first character (letter, digit, $, _). An identifier can be used to name a package, a class, an interface, a method, a variable, etc.

How to Fix Unreachable Statement Errors in Java

Statements are foundational language constructs that have an effect on the execution of a program. Statements are similar to sentences in natural languages. In Java, there are three main types of statements, namely expression statements, declaration statements, and control-flow statements 1. As a compiled programming language, Java has an inbuilt mechanism for preventing many source code errors from winding up in executable programs and surfacing in production environments 2.

Types of Exceptions in Java

Java is an object-oriented programming language. It supports a variety of techniques, including exception handling. This Java feature allows developers to control exception-related runtime issues. In Java, an exception is an event that happens during the execution of a program and prevents the program's instructions from flowing normally. Exceptions are bugs or errors that we don't want and that prevent our application from running normally. In this article, we are discussing exceptions in Java.

Coding Java Applications the Serverless Way

Serverless Java applications use modern cloud computing to let developers focus on business logic rather than infrastructure. In a serverless environment, the infrastructure provider takes care of scaling, runtimes, resource management, security and other specifics. Concerns such as number of instances to run and which OS to use are managed by Function as a Service (FaaS) platforms, allowing developers to focus on application code.

What Are Cloud Native Java Applications & Architectures?

Cloud-native has been one of the biggest trends in software development for quite a while. Developing, deploying and managing applications outside of local machines and entirely in the cloud offers countless opportunities to businesses. The cloud computing delivery model helps them bring new ideas to market faster and respond swiftly to customer requests. From a technical point of view, cloud-native development provides faster and lighter runtimes, reduces complexity and stabilizes applications.

Quarkus vs Spring Boot: Which Framework is Right for You?

In modern application architecture and development, there has been a push from monolithic applications towards microservices. This has made microservices frameworks (micro-frameworks) very popular since they make it easier to prototype, design and build microservices applications. Spring Boot and Quarkus are both very popular microservices frameworks for building cloud native Java applications.

What to Do About Java Memory Leaks: Tools, Fixes, and More

Memory management is Java’s strongest suit and one of the many reasons developers choose Java over other platforms and programming languages. On paper, you create objects, and Java deploys its garbage collector to allocate and free up memory. But that’s not to say Java is flawless. As a matter of fact, memory leaks happen and they happen a lot in Java applications. We put together this guide to arm you with the know-how to detect, avoid and fix memory leaks in Java.

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 all database interactions behind its API.