Difference betwee public and protected and private Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 11031
Total Votes: 149 votes
Category: JAVA/Getting Started
Submitted on: 2013-04-13 09:42:06
Submitted By: Javin Paul
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...