I am trying to learn interesting behaviour of java. Please explain
double z = 1/3;
System.out.println(z);
This program return 0.0 where as
double z = 1/3d;
System.out.println(z);
This program prints 0.333333. What is the difference.