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 JVM ?
4 Answers Phantom Technologies, TCS,
Can you have a constructor in abstract class?
Can a private method of a superclass be declared within a subclass?
Why are lists ordered in java?
what is main purpose of interface?
2 Answers Accenture, HCL, NIIT,
Explain about vector, dictionary,hash table, property classes?
Is it possible to declare abstract class as final?What happens if we do so?
What is light weight component?
Explain the available thread states in a high-level?
How the interruptible method gets implemented?
What does the “final” keyword mean in front of a variable? A method? A class?
What is role of void keyword in declaring functions?