L
lallous
Hello
I wonder why the output of this:
System.out.println("R=" + ( 4 < 4 ? 1.2 : 2));
Is 2.0 and not 2.
Is Java evaluating the types of both operands and deciding what the returned
type will be?
What is the best place online to read about Java language specifications.
(I come from a C background)
I wonder why the output of this:
System.out.println("R=" + ( 4 < 4 ? 1.2 : 2));
Is 2.0 and not 2.
Is Java evaluating the types of both operands and deciding what the returned
type will be?
What is the best place online to read about Java language specifications.
(I come from a C background)