Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 10411
Total Votes: 135 votes
Average Rating: 2.86 out of 5
Category: JAVA/Getting Started
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.