Tagged articles
317 articles
Page 4 of 4
Suishouji Tech Team
Suishouji Tech Team
Mar 20, 2018 · Fundamentals

Why Protocol Buffers Outperform JSON and XML for Mobile Data Transfer

Protocol Buffers, Google’s cross‑platform serialization format, dramatically reduces payload size and speeds up transmission compared to JSON or XML by using compact binary encoding, Varint and ZigZag techniques, and offers powerful reflection mechanisms illustrated with Objective‑C examples and detailed code snippets.

ReflectionVarintZigzag
0 likes · 14 min read
Why Protocol Buffers Outperform JSON and XML for Mobile Data Transfer
JD Retail Technology
JD Retail Technology
Mar 19, 2018 · Mobile Development

Android P Restricts Non‑Official APIs: Overview, Verification, and Practical Testing

This article explains how Android P disables the use of hidden (non‑SDK) APIs, describes the official restrictions and grey‑list classifications, provides verification steps and download links, and demonstrates a practical reflection test on the WifiManager hidden field, highlighting the impact on developers.

AndroidAndroid PNon‑SDK API
0 likes · 8 min read
Android P Restricts Non‑Official APIs: Overview, Verification, and Practical Testing
Java Captain
Java Captain
Jan 2, 2018 · Fundamentals

Understanding Java Reflection: Concepts, Common Methods, and Example Exercises

This article explains Java's reflection mechanism, describing how Class objects represent runtime types, how to obtain them, and demonstrating common reflective operations such as inspecting methods, accessing fields, invoking constructors, handling arrays, and solving typical exercises with complete code examples.

ClassFieldReflection
0 likes · 11 min read
Understanding Java Reflection: Concepts, Common Methods, and Example Exercises
Java Captain
Java Captain
Dec 6, 2017 · Backend Development

Understanding Java Reflection Mechanism and Its Practical Applications

This article explains Java's reflection mechanism, outlines its capabilities such as runtime class inspection, object instantiation, method invocation, and dynamic proxy creation, and provides numerous code examples demonstrating how to retrieve class information, manipulate fields, invoke methods, and apply reflection in patterns like factories.

Backend DevelopmentCode ExampleDynamic Proxy
0 likes · 17 min read
Understanding Java Reflection Mechanism and Its Practical Applications
Senior Brother's Insights
Senior Brother's Insights
Dec 4, 2017 · Fundamentals

Mastering Thread‑Safe Singleton in Java: Double‑Check, Static Holder, Enum & Reflection Hacks

Explore multiple Java singleton implementations—including a thread‑safe double‑checked locking version, a static inner‑class approach, an enum‑based solution, and a reflection‑based attack—while learning their key technical details, advantages, pitfalls, and how to protect against serialization and reflection vulnerabilities.

JavaReflectionSingleton
0 likes · 6 min read
Mastering Thread‑Safe Singleton in Java: Double‑Check, Static Holder, Enum & Reflection Hacks
Java Captain
Java Captain
Nov 29, 2017 · Fundamentals

What Is an Immutable Object in Java? Understanding String Immutability

This article explains the concept of immutable objects in Java, using String as a case study, clarifies the difference between object references and objects, examines String’s internal fields across JDK versions, demonstrates how typical mutating methods actually create new instances, and shows how reflection can bypass immutability.

Immutable ObjectReflectionString
0 likes · 9 min read
What Is an Immutable Object in Java? Understanding String Immutability
Java Backend Technology
Java Backend Technology
Nov 27, 2017 · Fundamentals

Why Swapping Two Integers Fails in Java? Exploring Pass‑by‑Value, Handles, and Integer Caching

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.

AutoboxingJDKReflection
0 likes · 10 min read
Why Swapping Two Integers Fails in Java? Exploring Pass‑by‑Value, Handles, and Integer Caching
Java Captain
Java Captain
Nov 15, 2017 · Fundamentals

Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure

This article introduces Java generics, covering generic classes and methods, wildcard usage with the PECS principle, bounded type parameters, and the implications of type erasure, illustrating each concept with code examples and discussing common pitfalls such as generic arrays, bridge methods, and runtime type checks.

GenericsPECSReflection
0 likes · 17 min read
Understanding Java Generics: Basics, Wildcards, Bounds, and Type Erasure
Java Captain
Java Captain
Sep 26, 2017 · Backend Development

Five Ways to Create Objects in Java and Their Bytecode

This article explains five Java object‑creation techniques—using the new keyword, Class.newInstance, Constructor.newInstance, clone, and deserialization—shows their bytecode differences, provides a complete Employee example, and demonstrates each method with runnable code and output.

DeserializationObject CreationReflection
0 likes · 8 min read
Five Ways to Create Objects in Java and Their Bytecode
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java Static and Dynamic Proxy Patterns

This article explains the concept of the Proxy design pattern, demonstrates how to implement static and dynamic proxies in Java with complete source code, and analyzes the advantages, limitations, and internal workings of Java's runtime-generated proxy classes.

Dynamic ProxyProxyReflection
0 likes · 15 min read
Understanding Java Static and Dynamic Proxy Patterns
Meituan Technology Team
Meituan Technology Team
Mar 17, 2017 · Mobile Development

Automated Patch Generation for the Robust Android Hot‑Update System

The open‑source Robust hot‑update system now includes an automated patch‑generation tool that scans original methods, rewrites field and method accesses to reflective calls, and creates hook classes to overcome ProGuard’s obfuscation, optimization, and inner‑class challenges, cutting patch creation time from a day to minutes.

AndroidHotUpdatePatchAutomation
0 likes · 22 min read
Automated Patch Generation for the Robust Android Hot‑Update System
Qunar Tech Salon
Qunar Tech Salon
Sep 30, 2016 · Fundamentals

Understanding Java's Type Interface and Its Subinterfaces

This article explains the origin, purpose, and usage of the java.lang.reflect.Type interface and its subinterfaces—including ParameterizedType, TypeVariable, GenericArrayType, and WildcardType—detailing their methods, relationships with Class, and role in Java generics and reflection.

GenericsJavaParameterizedType
0 likes · 7 min read
Understanding Java's Type Interface and Its Subinterfaces
Qunar Tech Salon
Qunar Tech Salon
Aug 30, 2016 · Mobile Development

Implementing an EventBus in Android Using Reflection

This article explains the concept of an EventBus as an observer‑pattern based communication mechanism for Android components, illustrates it with a newspaper subscription analogy, and provides step‑by‑step Java implementation details—including registration, unregistration, and posting of events using reflection—plus integration tips within an Activity lifecycle.

AndroidEventBusMobile Development
0 likes · 6 min read
Implementing an EventBus in Android Using Reflection
Tencent Music Tech Team
Tencent Music Tech Team
Jul 5, 2016 · Game Development

Guide to Integrating Android Plugins in Unity Projects: Hybrid Builds, Mutual Calls, and Debugging

This guide explains how to create and use Android plugins in Unity, detailing wrapper placement, bidirectional calls between Unity’s Mono/IL2CPP and Android’s Dalvik/ART, reflection‑based interface design, Gradle‑MSBuild hybrid project setup, ADB remote debugging, and support for AAR files and manifest configuration.

ReflectionUnity
0 likes · 20 min read
Guide to Integrating Android Plugins in Unity Projects: Hybrid Builds, Mutual Calls, and Debugging
Qunar Tech Salon
Qunar Tech Salon
Mar 30, 2015 · Backend Development

Lesser‑Known but Practical Features of Google Guava

This article explores several under‑used yet useful Google Guava utilities—including unsigned primitive types, 128‑bit MurmurHash, InternetDomainName parsing, class‑path reflection, and CharMatcher string handling—providing code examples and explanations of how they can improve Java development efficiency.

HashingReflectionString
0 likes · 9 min read
Lesser‑Known but Practical Features of Google Guava