Weird, huh? Yeah. Have a look at this snippet (or better yet, try it
out!):
public void foo(float x) {
System.out.println("FLOAT");
}
public void foo(double y) {
System.out.println("DOUBLE");
}
foo(10L);
that'll actually print 'FLOAT', believe it or not.
As I said, the method resolution part is _exactly_ like 'extends' for
classes.
On Dec 7, 12:16 am, "Vince O'Sullivan" <[email protected]> wrote:
> 32bit float > 64bit long?
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.