what are access specifiers in Java ?
Answers
Answered by
2
C++ uses the three modifiers called public , protected , and private . C# has the modifiers public , protected , internal , private , and protected internal . Java has public , package , protected , and private . The access modifier package is the default and used, if any other access modifier keyword is missing.
Answered by
4
JAVA ACCESS SPECIFIERS. The access to classes, constructors, methods and fields are regulated using access modifiers i.e. a class can control what information or data can be accessible by other classes. ... A member has package or default accessibility when no accessibility modifier is specified.
Jas41:
Hey,can you tell me what a syntax is!
Similar questions
English,
8 months ago
Computer Science,
8 months ago
Business Studies,
8 months ago
Computer Science,
1 year ago
English,
1 year ago
English,
1 year ago