Private keyword in Java - always keep members private

Tutorials Shared by the Internet Community

Advertisements


Synopsis

private keyword provides encapsulation in Java which is a much needed property for any loose couple and high cohesive design. This article discusses o

Statistics

  • Total Hits - 27157

  • Total Votes - 108 votes

  • Vote Up - 50 votes

  • Vote Down - 58 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-07-21 05:15:53

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements