All syntax guides
Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.
3,980 guides across 14 topics
Topics
Popular guides
Most readLatest guides
Page 318 of 398Java Short Type: Range, Usage, and Pitfalls
Learn the Java short type: its 16-bit range, arithmetic promotion, casting, memory impact, and when short is worth using instead of int.
Java byte Type: Range, Conversion, and Pitfalls
Learn how Java's byte type works, including its signed 8-bit range, conversion rules, arithmetic pitfalls, and practical use in binary data.
Java Primitive Types: Sizes, Defaults, and Behavior
A practical guide to Java primitive types: sizes, default values, memory behavior, autoboxing traps, and when wrappers are required.
Java Primitive Data Types: Size, Range, and Usage
Learn about Java's eight primitive data types, their sizes, ranges, default values, memory behavior, and when to choose them over wrapper classes.
java var vs explicit type: Choosing the Right Declaration
java var vs explicit type: Compare Java's var keyword with explicit type declarations: readability, maintainability, performance, and practical decision criteria for w...
Java var Limitations: What You Need to Know
java var limitations: Explore the practical limitations of Java's var keyword: where it works, where it fails, and how it affects code clarity, API design, and maintai...
Java var Keyword: Local Type Inference Explained
Learn how the java var keyword works, where it can and cannot be used, and how local type inference affects readability and maintainability.
Java Type Inference var: How It Works and When to Use It
java type inference var: Learn how Java's var keyword works for type inference, where it can be used, its limitations, and how it affects readability and performance.
Java Constants: static final Fields and Enums
Static final fields and enums are the standard ways to define constants in Java. This article compares their type safety, compile-time inlining behavior, and maintainability tradeoffs.
java static final: Semantics and Practical Use
java static final: Learn the exact meaning of static final in Java, how it applies to fields, methods, and classes, and when to use it for constants and immutable state.