Linwood Hayes wrote:Does the synchronized(Integer.toInt(number)) achieve the supposed synchronization effect on variable "number" ?
Mike Simmons wrote:
Linwood Hayes wrote:Does the synchronized(Integer.valueOf(number)) achieve the supposed synchronization effect on variable "number" ?
Well, there's no method Integer.toInt(), so we would have to guess what it does. I have a few different guesses which would lead to different results. I suggest you try compiling the code to see if it is even allowed, then let us know what you mean to ask about.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
What's that smell? Hey, sniff this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
|