Computer Science, asked by Jas41, 1 year ago

what are access specifiers in Java ?

Answers

Answered by MSoumya11111
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 shruti1618
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!
shruti1618: according to me the arrangement of words and phrases to create well-formed sentences in a language
Jas41: oh thanks
shruti1618: can u mark it as brainliest
shruti1618: wlcm
Similar questions