This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Access modifiers can restrict the usages of methods and variables within an application. Using this effectively, is considered as a good coding practice or will i be benefited anything from performance wise.
Say i am having a public method in my class, but i am using that method only in that class. If i change this method to private, will it improve my performance?
Similarly if i mark my class as final, no body can extend that, but will it improve the performance?