Re: Float.MIN_VALUE
On Feb 11, 9:27 pm, 10god...@gmail.com wrote:
On 12 velj, 04:45, r...@zedat.fu-berlin.de (Stefan Ram) wrote:
10godina <10god...@gmail.com> writes:
System.out.println(Float.MIN_VALUE);
What happens when you use the following statement?
java.lang.System.out.println( java.lang.Float.MIN_VALUE );
package operators;
public class Exponential {
public static void main(String[] args) {
java.lang.System.out.println( java.lang.Fl=
oat.MIN_VALUE ); // works
fine
System.out.println(Float.MIN_VALUE); //err=
or
System.out.println(Float.MAX_VALUE); //err=
or
System.out.println(Double.MIN_VALUE); //wo=
rks fine
System.out.println(Double.MAX_VALUE); //wo=
rks fine
}
}
If you have a class named Float in the operators package that's
visible at compile time, it will be used for the two "error" lines
instead of java.lang.Float. However, fully-qualified class names
always refer to the same class, which is why the first line works (you
only needed to qualify java.lang.Float, not System).