English subtitles

← Casts - Intro to Java Programming

Get Embed Code
6 Languages

Showing Revision 4 created 05/24/2016 by Udacity Robot.

  1. When you try this, you will get an error. And the reason is, that
  2. the type of 4.35 is double, and any time you do arithmetic and one of
  3. the operands is a double, then the entire value is also a fractional number.
  4. And the Java Compiler will not let you move a double value into an int variable.