Simple question on Java primitives

Posted by Abhishek Jain on Stack Overflow See other posts from Stack Overflow or by Abhishek Jain
Published on 2010-06-13T17:16:50Z Indexed on 2010/06/13 17:22 UTC
Read the original article Hit count: 218

Filed under:
|
  float f = 1;

  float g = 1.1;

  float h = 1.1f;

second line has compilation error. While rest of line do not have compilation error.Please suggest.

© Stack Overflow or respective owner

Related posts about java

Related posts about primitive