Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 12640
Total Votes: 150 votes
Average Rating: 2.82 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.