Private keyword in Java - always keep members private
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 11107
Total Votes: 135 votes
Category: JAVA/Core JAVA
Submitted on: 2012-07-21 05:15:53
Submitted By: Javin Paul
Description:private keyword provides encapsulation in Java which is a much needed property for any loose couple and high cohesive design. This article discusses one of java coding best practices which says keep variable, methods private until you have a good reason for not doing so. More detail...