Answer Posted / 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 |
Post New Answer View All Answers
Can we overload final method in java?
How to perform quicksort in java?
Is class forname reflection?
What is volatile keyword in java
What are scalar data types?
How do you sort arrays in java?
If a variable is declared as private, where may the variable be accessed?
What is java reflection?
What is the purpose of garbage collection in java? When is it used?
Explain the difference between an Interface and an Abstract class?
Describe different states of a thread.
What is a byte array?
What is your platform?s default character encoding and how to know this?
What happens if we override only equals?
What is difference between final and finally in java?