0

Could anyone please explain me what is 'd' here and what is default access level?

Java has 4 access levels & 3 access specifiers... //Access levels are private, public, protected & default //Access specifiers are private, public & protected & //Accessibility of d class private:- accessible within d same class public:- accessible to all classes of your program protected:- within d same package & child classes of other packages default:- within d same package... ( If u don't specify any of d 3 access specifiers explicitly, then default access level will be applicable )...#

28th Oct 2020, 1:08 PM
Sri Laya
Sri Laya - avatar
3 Respostas
+ 1
It seems that it notes of some one. And it is written "the" as a shortly "d". In java default access specifier is called as "package private".. (within in the same package only)
28th Oct 2020, 1:16 PM
Jayakrishna 🇮🇳
+ 1
If you don't mention any access modifier then it has default access modifier or access is "package private". Means those not available to other packages. So you cannot access, those in another package even after using imported. Ex : //default access specifier for class Abc class Abc{ ... } 2) //protected access specifier for class Abc protected class Abc{ ... } 3)//private access specifier for class Abc private class Abc{ ...} 4)//public access specifier for class Abc public class Abc{ ... } //modifier can also be applied to class properties data and methods..
28th Oct 2020, 1:49 PM
Jayakrishna 🇮🇳
0
Jayakrishna🇮🇳 Package private means...could u pls explain me in detailed manner...!!!
28th Oct 2020, 1:29 PM
Sri Laya
Sri Laya - avatar