lousy conversion from float to int.type checking in java : the Java is strong type checked language .the java book i am refer 

> ***the complete java reference***< says that *numeric types such as integer and float are compatible with each other*
while typing the program i encountered a problem lousy conversion

    package niit.program;
    public class table5 {
    public static void main(String args[]){
    int i=5.6;
    System.out.println(i);
    }
    }

[screenshot of the image ][1]
   
   


    


  [1]: http://i.stack.imgur.com/2cAvn.png