Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Learn the differences between application state and session state in Java web applications, including their scope, lifetime, use cases, and examples for shared data and user-specific settings.
Apache Kafka is a distributed streaming platform used to build real-time data pipelines and applications. It relies on Zookeeper for managing metadata and broker health.
Sometimes, a programmer might need to define a class member that will be used independently of any object of that class.
This is essential for utilizing Java’s object-oriented features, such as collections. With autoboxing and unboxing, Java simplifies conversions between primitives and their corresponding wrapper classes, enhancing type safety and performance in data manipulation.
Constructors are used to initialize an object of a particular type, as well as to allocate memory, and have the same name as the class.
Explore key Kafka terminologies like brokers, topics, partitions, and offsets, along with an overview of its core client APIs. Learn how the Producer, Consumer, Streams, and Connect APIs enable powerful event streaming, data integration, and real-time processing in Apache Kafka.
This article explains how to consolidate common string utility functions in Java by creating a utility class like StringUtils. It covers methods for checking if a string contains only alphanumeric characters with underscores and if a string consists solely of letters, improving code organization and reusability.
Customized exceptions are necessary to handle abnormal conditions of applications created by the user.
Java Virtual Threads, introduced in Project Loom, offer a lightweight alternative to traditional platform threads by allowing the JVM to manage threads instead of the OS. This improves scalability and resource efficiency, enabling applications to handle thousands of concurrent tasks with minimal overhead.
Learn how to efficiently manage data flow between your application's logic and user interface components, whether you're working with Java Swing, JavaFX, or custom UI controls. Ideal for developers aiming to enhance their Java applications.
This article guides you in creating a dynamic delete modal in Java. You'll learn how to design a modal popup that adjusts its content based on the item to be deleted, pass item data using JavaScript and AJAX, and handle the deletion process in Java, ensuring a smooth and efficient user experience.
This article demonstrates how to implement a dynamic document upload feature in a Spring Boot Java application. It allows users to upload multiple files by dynamically adding or removing input fields. The uploaded files are processed server-side, enhancing flexibility for document management and online forms.
This guide details creating an LDAP authentication API using Java and Spring Boot. It covers dependency setup, LDAP server configuration, and implementing a REST controller for user authentication. The solution includes secure credential handling and best practices for securing the API in production.
This guide covers responsive form creation, scalable data management, and seamless backend integration, offering strategies for efficient user input handling and adaptable storage solutions.
Managing modal popups in Java web applications can be complex if code is duplicated across multiple JSP pages. This guide explores how to centralize and reuse modal code using JSP and servlets, enhancing maintainability. Learn to streamline modal management with dynamic content and efficient coding practices.
Learn to create interactive UI components that enhance user experience through modular, maintainable code. Ideal for developers seeking to improve their Java skills and design more responsive, scalable applications.
It covers setting up logging frameworks, capturing runtime errors, and ensuring data persistence for effective error management and tracking. Ideal for improving application reliability and diagnostics.
This guide demonstrates how to implement pagination in a Java web application using JSP and Servlets. It covers setting up a data source, handling pagination logic in a servlet, and displaying data with pagination controls in a JSP page.
Learn how to build a full-stack application by integrating React with Spring Boot. This guide covers the seamless communication between frontend and backend using React for the user interface and Spring Boot for robust API development.
Learn how to retrieve and display database records in Java using JTable with this step-by-step guide. Explore Java Swing for creating a graphical user interface, JDBC for database connectivity, and SQL queries for fetching data.
Understanding the Binary Search Algorithm delves into the mechanics of binary search, a fundamental algorithm in computer science. This guide covers its implementation in both iterative and recursive forms, explains its logarithmic time complexity, and highlights its efficiency in searching sorted arrays.
Implementing thread-safe, dynamically resizable arrays in C ensures data integrity in multi-threaded applications. Utilize mutex locks for synchronization, condition variables for state management, and resize arrays dynamically to handle concurrent access efficiently.
Integrating Okta with Spring Boot using Spring Security and OAuth 2.0 enhances authentication and authorization. This guide explains Okta's role, OAuth 2.0 functionality, and provides a practical implementation example for secure user management.
QuickSort, an efficient and popular sorting algorithm, is implemented in Java. It uses a divide-and-conquer approach involving partitioning around a pivot and recursively sorting sub-arrays, ensuring fast sorting performance.
Learn how to handle database transactions effectively, ensure data integrity, and manage rollbacks and commits within your Spring Boot applications. Perfect for developers seeking in-depth insights.
Discover how to configure CORS policies, handle HTTP headers, and ensure secure API interactions. Perfect for developers looking to implement effective web service solutions and backend configurations.
This guide covers configuring logging settings, integrating log management tools, and best practices for monitoring and analyzing logs to ensure smooth application performance and debugging.
Discover the exciting new features and improvements in Java 22, the latest release of the popular programming language. This update brings enhanced performance, new APIs, improved security, and more developer-friendly tools.
The AbstractList class in the Java Collections Framework provides a skeletal implementation of the List interface, enabling developers to create custom list implementations with ease. It offers default implementations for some list operations, allowing focus on specific aspects of the custom list.
Everything on Java, not only its articles: the Java page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article