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 315 of 398Java int to double: Conversion Rules and Precision
java int to double: Learn how Java converts int to double through widening conversion, when explicit casting is required, and where precision can be lost in arithmetic.
Java Widening vs Narrowing Conversion
Learn the difference between Java widening and narrowing conversions: implicit vs. explicit casting, precision-loss risks, constant-expression narrowing, and practical examples.
Java Narrowing Conversion Explained
Java narrowing conversion uses explicit casts to move values to smaller primitive or reference types. Learn the casting rules, data-loss behavior, and safe patterns for avoiding runtime errors.
Java Widening Conversion: How Implicit Type Promotion Works
java widening conversion: Understand Java widening conversion: which primitive types widen implicitly, how it affects assignments, expressions, and method overload res...
Java Explicit Casting: Syntax, Risks, and Safe Usage
java explicit casting: Learn how explicit casting works in Java, when it is required, and how to avoid data loss and ClassCastException with safe downcasting techniques.
Java Implicit Casting: Rules and Examples
Learn how Java implicit casting works for primitive types, when it applies, and how it differs from explicit casting.
Java Type Casting: Syntax, Behavior, and Pitfalls
java type casting: Understand Java type casting: primitive widening and narrowing, object upcasting and downcasting, and how to avoid ClassCastException with instanceo...
Java Wrapper Class Methods: Parsing and Conversion
java wrapper class methods: How Java wrapper class methods handle parsing, conversion, and comparison, including valueOf, parseInt, compareTo, and autoboxing pitfalls.
Java Autoboxing vs Unboxing: What Actually Happens
java autoboxing vs unboxing: Understand how Java converts primitives to wrapper objects and back, where the conversions happen, and the null and equality pitfalls to a...
Java Unboxing: How It Works and Where It Breaks
Understand Java unboxing: how the JVM converts wrappers to primitives, common pitfalls like NullPointerException, and performance tradeoffs.