Computer Science, asked by hetviviradiya3669, 1 year ago

Which of the access specifiers can be used with keyword class?

Answers

Answered by sahilraj9619
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 Anonymous
3
  • The access modifiers that can be used with keyword class are:
  1. public
  2. <default > (when no access modifier is specified)
  3. final
  4. abstract
  5. strictfp

These are applicable for top level classes.

  • For inner classes the access modifiers are:
  1. private
  2. protected
  3. static

Access specifiers are known as access modifiers in java. There are total 12 access modifiers available in java.

Similar questions