This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi, We have a requirement where in we need keep a class level attribute which holds some constant data and would be used in each method for logging purpose. Now the question is, should that attribute should be static or non-static? which is better from performance point of view? Thanks, Santhosh.
hi if they are not likely to change then u can go with, "final static" which would let compiler optimize it more... otherwise, static would be faster i believe as instance variables needs to be accessed from Heap going via the object reference... any better explanations? regards maulin.