What is better to use in Java? x <= 10 or x < 11?
java, performance
Solution
Refer http://en.wikipedia.org/wiki/Java_bytecode_instruction_listings For example, for `x <= 10 `, ` if_icmple ` instruction will be used and for ` x < 11 `, ` if_icmplt ` instruction will be used. Both should have same efficiency.
Problem
Is there any difference affecting program efficiency between `x <= 10` and `x < 11` ? Are there any other differences? Thank you