This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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?