Difference betwee public and protected and private Java

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Difference betwee public and protected and private Java

public, protected and private are three important keyword, which is used for access control in Java. Main difference between public and protected are
http://javarevisited.blogspot.com/2012/10/difference-between-private-protected-public-pack...
  • Total Hits: 16317

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 160 votes

  • Category: JAVA/Getting Started

  • Submitted on: 2013-04-13 09:42:06

  • Submitted By: Javin Paul

  • Set as Favorite

Description:

public, protected and private are three important keyword, which is used for access control in Java. Main difference between public and protected are there access restriction, public is least restrictive, protected allows access outside package only subclass and private is most restrictive.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 36.25%  58
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.63%  17
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 13.13%  21
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.25%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.75%  46

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements