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
How do you add an element to an arraylist in java?
What an i/o filter?
What is the difference between && and & in java?
Can we have two methods in a class with the same name?
How an object is serialized in java?
Does hashset allow duplicates in java?
How to create a thread in java?
What are the two basic ways in which classes that can be run as threads may be defined?
Mention some interfaces implemented by linked list in java.
What is the public field modifier?
How big is a 32 bit integer?
can I implement my own start() method? : Java thread
Can a final variable be null?
Can keyword be used as identifier?
What is a generic type?