IntroductionJava Enhancement Proposal (JEP) 389, titled the Foreign Function and Memory API (FFM API), is a pivotal step towards enhancing Java's interaction with native code and memory. This … [Read more...] about JEP 389: Foreign Function & Memory API in Java
Java
Implementing OAuth2 with Spring Security in Java
IntroductionOAuth2, or Open Authorization 2.0, is a standard protocol for authorization. While it's often mistakenly referred to as an authentication protocol, its primary job is to delegate … [Read more...] about Implementing OAuth2 with Spring Security in Java
Java ArrayList: From Iteration to Custom Objects
IntroductionBrief about the Java Collections FrameworkThe Java Collections Framework (JCF) is a crucial and comprehensive set of classes and interfaces in Java's standard library, designed … [Read more...] about Java ArrayList: From Iteration to Custom Objects
Exceptions in Java: Tips, Code Examples, and More
IntroductionIn programming, unpredictability is a given. While crafting a Java application, developers often encounter unexpected situations—data might not arrive as anticipated, files we expect … [Read more...] about Exceptions in Java: Tips, Code Examples, and More
Java Remote Method Invocation (RMI)
IntroductionJava Remote Method Invocation (RMI) is a technology that allows developers to create distributed Java applications where objects on one Java Virtual Machine (JVM) can invoke methods on … [Read more...] about Java Remote Method Invocation (RMI)
Creating PDF Documents in Java using iText
IntroductionCreating PDFs programmatically is a common requirement in software projects, ranging from generating reports to creating complex forms. While there are multiple languages and libraries … [Read more...] about Creating PDF Documents in Java using iText
Mastering Java Generics: From Basic to Advanced
IntroductionJava has undergone numerous evolutions since its inception in the mid-'90s. Its adaptability and commitment to improvement have been some of the pivotal reasons for its widespread … [Read more...] about Mastering Java Generics: From Basic to Advanced
Building Microservices Using Spring Boot and Docker
Overview of Microservices ArchitectureMicroservices Architecture refers to a method of developing software applications as a suite of small, independent services that run in their own processes. … [Read more...] about Building Microservices Using Spring Boot and Docker
Implementing an OCR System in Java Using Tesseract
IntroductionBrief Explanation of OCROptical Character Recognition, or OCR, is a powerful technology used to convert different types of documents, such as scanned paper documents, PDF files, or … [Read more...] about Implementing an OCR System in Java Using Tesseract
Working with Java’s Atomic Variables: A Deep Dive
Atomic variables in Java have gained significant importance over the years, especially in high-concurrency applications. They are essential to building efficient, scalable, and thread-safe programs. … [Read more...] about Working with Java’s Atomic Variables: A Deep Dive
Advanced Java I/O: NIO, NIO.2, and Asynchronous I/O
IntroductionBrief Overview of Java I/OJava Input/Output (I/O) forms the backbone of most Java applications, enabling the movement of data in and out of the programs. Traditional Java I/O is … [Read more...] about Advanced Java I/O: NIO, NIO.2, and Asynchronous I/O
Reactive Programming in Java with Project Reactor and RxJava
IntroductionDefining Reactive ProgrammingReactive Programming is a paradigm shift from the traditional, imperative style of programming that has long dominated the software industry. Unlike … [Read more...] about Reactive Programming in Java with Project Reactor and RxJava
Implementing Domain-Driven Design with Java
IntroductionWhat is Domain-Driven Design?Domain-Driven Design, commonly referred to as DDD, is an approach to software development that prioritizes a deep understanding of the business domain. … [Read more...] about Implementing Domain-Driven Design with Java
Java Operators Overloading: Limitations and Workarounds
Operator overloading is a compile-time polymorphism technique where an operator is overloaded to provide the special meaning to the user-defined data type. Operator overloading is used to perform … [Read more...] about Java Operators Overloading: Limitations and Workarounds
Java Networking: Advanced Socket Programming and Network Protocols
Java Networking and Socket Programming, in essence, are the cornerstones of Java's capabilities for inter-system communication. Java provides an extensive collection of classes and interfaces for … [Read more...] about Java Networking: Advanced Socket Programming and Network Protocols
JShell: Advanced Usage and Customization of Java REPL
In Java development, JShell has become an indispensable tool for developers looking to streamline their coding process. Introduced in Java 9 as the official Java REPL (Read-Eval-Print Loop), JShell … [Read more...] about JShell: Advanced Usage and Customization of Java REPL
Building High-Performance WebSocket Applications with Java and Netty
WebSocket applications have revolutionized the way we interact with web-based services by enabling real-time, bidirectional communication between clients and servers. Unlike traditional HTTP … [Read more...] about Building High-Performance WebSocket Applications with Java and Netty
Java Concurrency Utilities: Custom Thread Pools and Schedulers
IntroductionIn software development, efficient utilization of computational resources is a perpetual goal, particularly when it comes to multi-threaded programming. This need is even more … [Read more...] about Java Concurrency Utilities: Custom Thread Pools and Schedulers
Java ServiceLoader: Implementing and Customizing Service Provider Interfaces (SPIs)
You may have encountered situations where you need to extend or customize the functionality of a library or framework without modifying its original source code. Service Provider Interfaces (SPIs) are … [Read more...] about Java ServiceLoader: Implementing and Customizing Service Provider Interfaces (SPIs)
Java Flight Recorder: Advanced Profiling & Diagnostics Techniques
Java Flight Recorder (JFR) is a high-performance data collection framework that allows developers to monitor and diagnose Java applications with minimal overhead. It is an indispensable tool for … [Read more...] about Java Flight Recorder: Advanced Profiling & Diagnostics Techniques
Java Object Serialization and Custom Serialization Techniques
Java Object Serialization is a mechanism that allows developers to convert an object's state into a byte stream, which can then be transmitted or stored. Once the object's state is saved, it can be … [Read more...] about Java Object Serialization and Custom Serialization Techniques