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
What data type is a string?
How do you use equal in java?
What is the static field modifier?
Are strings immutable in java?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
Difference between process and thread?
Why do we use predicate in java?
Describe different states of a thread.
When should I use a singleton?
What is equals method in java?
Is java hard to learn?
What is the buffer limit?
Why is stringbuffer thread safe?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?