The article analyzes an arbitrary URL redirect flaw caused by unchecked returnUrl parameters, demonstrates how Java's URL.getHost() can be misused through backslash and hash bypasses, and provides a robust validation code snippet that works across JDK versions.
This article presents a curated set of 208 Java interview questions, focusing on the Java Basics module, and provides detailed explanations, code examples, and analyses of concepts such as JDK vs JRE, == vs equals, hashCode, final, abstract classes, and common String operations.
This article outlines JD's attempts and explorations in customizing the JDK for HDFS, describing the background, limitations of Oracle JDK 1.8, the adoption of OpenJDK 11 with G1GC, a series of JVM and GC optimizations, performance results, and future development plans.
This article provides a comprehensive, step‑by‑step explanation of Java 7 HashMap and ConcurrentHashMap internals, covering their data structures, put/get algorithms, array initialization, resizing, segment locking, rehashing, and the concurrency considerations that ensure thread‑safe access.
This article provides a comprehensive overview of Java's HashMap, covering its purpose as a key‑value store, the evolution of its internal data structures from JDK 1.7 to JDK 1.8, detailed explanations of core methods such as hash, put, get, resize, and practical example code illustrating common operations.
ZGC is a scalable, low‑latency Java garbage collector designed to keep pause times under 10 ms regardless of heap size, supporting up to 4 TB, and leveraging concurrent, region‑based, compacting, NUMA‑aware techniques, colored pointers, and load barriers, with detailed compilation and tuning guidance.
This article explains Oracle's recent statements on Java support and subscription licensing, compares Oracle JDK with OpenJDK and other vendors, and guides developers on choosing free or paid options for Java SE 8 and 11 LTS releases.
This article examines how different Java string concatenation techniques impact performance, demonstrates compile‑time optimizations and bytecode generation, and provides practical recommendations—such as using StringBuilder—to avoid costly object creation inside loops.
This article explains Oracle's Java 11 licensing changes, the split between commercial and OpenJDK builds, support and update policies, and how organizations can choose the right JDK from Oracle or alternative vendors to ensure proper maintenance and compliance.
This article explains the core concepts of Spring AOP, the proxy design pattern, and provides detailed Java examples of static proxy, JDK dynamic proxy, and CGLIB dynamic proxy, helping readers answer common interview questions and understand how Spring chooses the appropriate proxy implementation.
This article explains how JDK dynamic proxy generates proxy classes at runtime for interfaces using java.lang.reflect.Proxy and InvocationHandler, demonstrates usage with code examples, explores the underlying ProxyGenerator and class‑caching mechanisms, and clarifies why only interface‑based proxies are supported.
The article explains Java's claimed backward compatibility, clarifies that a runtime JRE must be at least the same version as the compiled bytecode, and shows how setting the JDK's source/target levels lets newer compilers produce artifacts that run on older JREs, with practical examples and guidance.
Explore the inner workings of Java’s HashMap and ConcurrentHashMap across JDK 1.7 and 1.8, examining their data structures, key methods like put and get, performance optimizations such as treeification, concurrency mechanisms, and practical insights for developers aiming to master these core collections.
This article provides a comprehensive overview of Java, explaining its evolution from a simple programming language to a broad technology ecosystem that includes Java SE, EE, ME, the JDK and JRE, OpenJDK, the Java Community Process, and the role of the JVM in achieving write‑once‑run‑anywhere.
This step‑by‑step tutorial shows how to install Tomcat, add Jenkins inside Tomcat, and set up JDK on macOS, covering environment preparation, required downloads, configuration of environment variables, command‑line startup and shutdown, and port conflict resolution.
This article explains the Proxy design pattern, details Java's dynamic proxy classes and interfaces from JDK 1.6 source, walks through the step‑by‑step creation process, presents a complete demo implementation, and analyzes the underlying Proxy class generation and InvocationHandler mechanisms.
This article explains how to solidify your Java fundamentals by thoroughly understanding the JDK’s three main components—JVM, core libraries, and development tools—and provides a practical classification of packages into four learning levels to guide efficient study.
This article dissects a Java interview question about swapping two Integer variables, explaining Java's pass‑by‑value semantics, the difference between handle‑based and direct pointer object access, Integer immutability, autoboxing, the IntegerCache mechanism, and how reflection can (or cannot) modify private final fields.
This article reviews Java 9’s extensive new features—including the module system, jshell REPL, performance and security enhancements—explains their impact on development practices, and discusses the challenges and future directions for the Java platform.
This article explains how to configure a Java development environment and set up LoadRunner to generate dynamic signatures and encryption for performance testing, detailing steps such as installing JDK 1.6, creating Java Vusers, configuring classpaths, and utilizing various Java libraries within LoadRunner scripts.
This article analyzes the core principles and components of thread pools, explains why they are essential for performance and flow control, and compares the concrete implementations in JDK, Jetty 6, Jetty 8, and Tomcat, providing guidance for developers who wish to use or customize thread pools.
Oracle has revealed the remaining four Java 9 JEPs—unified JVM logging, finer‑grained compiler controls, removal of obsolete garbage‑collector combos, and fixes to the Coin project—while also confirming modularization, DTLS support, HTML5 Javadoc output, and upcoming import‑warning clean‑up, signaling a clearer roadmap for the next Java release.