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 best design patterns used in large Spring Boot microservices. This guide explains core microservices patterns with simple examples, clean architecture, scalability tips, and enterprise best practices.
Explains the differences between ClassNotFoundException and NoClassDefFoundError in Java and shows how to fix classpath, dependency, packaging, and version-conflict issues.
Learn how to handle exceptions globally in a Spring Boot application using @ControllerAdvice, custom exception classes, and error response structures. This guide explains each concept in simple words with code examples.
Learn how to use Java Streams for filtering, sorting, and grouping data with simple explanations and practical examples. Perfect for beginners and professionals building Java applications.
Learn how to implement JWT authentication in Spring Boot using simple steps. This guide explains how JWT works, how to generate and validate tokens, and how to secure your APIs.
Tired of NullPointerExceptions crashing your Java code? This guide provides clear explanations, practical examples, and debugging tips to conquer NPEs for good!
Compare HashMap, LinkedHashMap, and TreeMap in Java, including their ordering, performance, null support, internal structures, and common use cases.
Simplify Azure operations in Java with the Azure Command Launcher. Its layered architecture and execution pipeline ensure maintainable, scalable, and testable cloud integrations.
Discover how to identify and resolve circular dependencies in Java modules, a common issue that can lead to build failures, runtime errors, and maintenance headaches. Learn to detect cycles using IDE tools or a Java-based graph algorithm with DFS. Explore practical solutions like using interfaces, creating common modules, and applying dependency inversion to achieve a cleaner, more maintainable, and scalable Java architecture. Keep your projects healthy by breaking those dependency cycles!
Unlock the secrets of Integer.MAX_VALUE and Integer.MIN_VALUE in Java! This guide explains these crucial constants, their uses in boundary checks, and how to prevent overflow/underflow errors. Learn through practical examples, including finding min/max values in arrays and handling edge cases. Plus, discover when to use long or BigInteger for even larger numbers. Master integer limits for robust Java code!
Learn how to implement iterative depth-first search in Java using a stack, track visited nodes, and avoid recursion limits when traversing graphs.
Learn how to generate strong, random passwords in Java using Random, SecureRandom, Java 8 Streams, and UUID. This guide covers basic to cryptographically secure methods, emphasizing the importance of password security in modern applications. Discover best practices for creating robust passwords with mixed character sets and sufficient length to protect user data from unauthorized access and brute-force attacks. Enhance your application security today!
Learn how to sort lists of objects by property in Java using Comparable, Comparator, Lambda expressions, and the Streams API. This guide provides practical examples for sorting by different object properties like ID, name, salary, and more. Discover best practices for ascending and descending order sorting, enhancing your Java coding skills for efficient and maintainable applications. Master the art of sorting with clean, concise, and SEO-friendly code examples.
This article provides a step-by-step implementation, covering user model creation, Spring Security configuration, JWT token generation, filter implementation, and testing. Learn how to build stateless and scalable APIs using JWT for enhanced security and efficient user authentication.
Java is a versatile, object-oriented programming language known for its portability, robustness, and scalability. Widely used in web, mobile, enterprise, cloud, and big data applications, it powers reliable solutions globally.
Java Event Handling enables interactive GUI applications through Semantic Events (ActionEvent, ItemEvent, TextEvent) for high-level actions and Mouse Events (click, press, release) for precise low-level control.
Learn how to find the Top K frequent elements in an array using detailed explanations of both Heap and Hash Map solutions, with beginner-friendly steps, examples, and Java code.
Learn how to find the Lowest Common Ancestor (LCA) in a binary tree using beginner-friendly explanations, step-by-step algorithms, and efficient Java code implementations.
Learn how to merge two sorted linked lists into one sorted list using an easy step-by-step approach. This beginner-friendly guide covers the definition, problem statement, iterative and recursive solutions, detailed explanations, and Java code examples.
Learn how to reverse a linked list in data structures with step-by-step explanations, detailed breakdowns of iterative and recursive approaches, and Java code examples for beginners and intermediates.
Understand the Binary Search algorithm in depth — how it works, step-by-step process, real-world use cases, and practical Java examples. Perfect for beginners and intermediate learners in Data Structures and Algorithms.
Learn how to solve the Valid Parentheses problem using a stack in data structures. This beginner-friendly guide explains the problem definition, logic, step-by-step solution, and Java code examples to help you master stack operations.
A deep dive into how Java's HashMap works behind the scenes, including how hashing, buckets, and collision resolution work. This article also explores what happens when two keys have the same hashCode().
Learn the in-depth differences between Java's ArrayList and LinkedList with practical code examples, performance considerations, and use-case analysis. This article will help Java developers choose the right list implementation for their needs.
This article explains the differences between Component, Service, and Repository annotations in the Spring Framework. You'll learn what each one does, how they relate to Spring's component scanning and dependency injection, and when to use which one. Includes real-world examples and best practices.
A comprehensive guide to implementing scalable and efficient pagination and sorting mechanisms in Spring Boot applications using Spring Data JPA. Includes real-world examples, best practices, and performance optimization tips to improve your REST API responses.
This article explores Java Records, a feature introduced in Java 14 and finalized in Java 16—and how they simplify and enhance data modeling. Learn what Records are, how they differ from traditional Java classes, their benefits in immutability, concise syntax, and real-world use cases, with clear examples.
Learn how type casting works in Java, including primitive and object casting, upcasting, downcasting, and common pitfalls like ClassCastException with practical examples and inheritance-based scenarios.
Aspose.Email is a powerful API for .NET, Java, Python & C++ that enables email reading, writing, conversion, and parsing with support for PST, EML, IMAP, SMTP, OAuth 2.0, and more ideal for automation.
Constructors are called whenever an instance of a given class is created. Finalizers are used to destroy the object created using constructors. A Constructor method is a special kind of method that determines how an object is finalized when created. They have the same name as the class and do not have any return type.
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