how many access specifiers are available in java
Answers were Sorted based on User's Feedback
Answer / manikandan
There are 4 access specifiers available , they are
(1) Public
(2) Protected
(3) Default
(4) Private
and their scopes are
Access|Scope|
Speci | |CLASS | SUBCLASS | PACKAGE |GLOBAL
--------------------------------------------------------------
PUBLIC YES YES YES YES
PROTECTED YES YES YES NO
DEFAULT YES YES NO NO
PRIVATE YES NO NO NO
| Is This Answer Correct ? | 6 Yes | 9 No |
Can a class be private?
What do you understand by synchronization?
can you use the two main method in same class?how?
4 Answers DELL, Geosoft, SparkTG,
What is array sorting in java?
What is pojo class in java?
How to instantiate static nested classes in java?
Explain purpose of sleep() method in java?
what is platform independence in java?
Explain the difference between transient and volatile in java?
Is java a software?
What is the purpose of final keyword and when to use it?
What are the basics of core java?