Want your method visible to the world? Thereโ€™s an access specifier for that. Want to keep your variable private? Weโ€™ve got you covered.
Just pacifier in Java our. Body sama rendra adiktif. Which is pacifier in Java. So basically. The access specifier in which there are four types of access specifier. 1st when public access specifier.
Access_Specifier_Outside_Package1_Class.java Code Blame 24 lines (21 loc) · 431 Bytes Raw 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 package basicconcept;//WAP on Access specifiers ...
Different package - folder1, folder2 - folder1 class is accessible in folder2 class. Entire project. - Access from anywhere in the entire application.