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 |
What is a finally block? Is there a case when finally will not execute?
When throw keyword is used?
what is difference between set and list in collection?
what is the use/perpose of having a method antive?
Can It is possible to synchronize the constructor of a Java Class?
How the metacharacters are different from the ordinary characters?
What is collections framework?
How many types of keywords are there?
What are some alternatives to inheritance?
Can we override static methods?
18 Answers Bally Technologies,
What are the skills required for core java?
What is an array in java?