Which of the access specifiers can be used with keyword class?
Answers
Answered by
2
There are four eccess specifiear for classes Java: PRIVATE: method and constructor they are declared private can also be accessed within the declare class itself public: A, method, constructor inter physics Sutra declared public can be accessed from any other class
Answered by
3
- The access modifiers that can be used with keyword class are:
- public
- <default > (when no access modifier is specified)
- final
- abstract
- strictfp
These are applicable for top level classes.
- For inner classes the access modifiers are:
- private
- protected
- static
Access specifiers are known as access modifiers in java. There are total 12 access modifiers available in java.
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago
Psychology,
7 months ago
Political Science,
1 year ago
English,
1 year ago
Science,
1 year ago