SCJP 1.5(95%)
seetharaman venkatasamy wrote:from -128 to 127 , the Integer object compares the values
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
seetharaman venkatasamy wrote:from -128 to 127 , the Integer object compares the values
SCJP 1.5(95%)
Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
seetharaman venkatasamy wrote:from -128 to 127 , the Integer object compares the values
SCJP 1.5(95%)
SCJP, SCWCD
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
If the value p being boxed is true, false, a byte, a char in the range \u0000 to \u007f, or an int or short number between -128 and 127, then let r1 and r2 be the results of any two boxing conversions of p. It is always the case that r1 == r2.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Wouter Oet wrote:The range is not always the same. You can change it with properties.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
I knew it was in the JLS somewhere, but had forgotten where.Thank you.marc weber wrote:See JLS - Boxing Conversions
Rob Prime wrote:
Wouter Oet wrote:The range is not always the same. You can change it with properties.
Really? Can you tell me which ones then? Because the source of Integer in Java 6 uses an array with hard coded bounds of -128 and 127.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Wouter Oet wrote:Btw. There is no need for cynicism. Even if I where wrong. We're are human and we all make mistakes.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Wouter Oet wrote:What I find weird is that there is no such functionality for longs.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:
Wouter Oet wrote:What I find weird is that there is no such functionality for longs.
It isn't present for byte, short or char either. Granted, byte wouldn't even need this functionality, but the others could have benefited from it too.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Wouter Oet wrote:I'm talking about the cache itself. Not if it's configurable.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |