what are the different access specifiers that can be used
by interfaces and abstract classes? can anyone give me
detailed description on this
Answer Posted / dhiren
public accsess specifier means it can publically accessed
by the class whether it's subclass of that class or present
in same packege or diffrent classes.
private access specifier is private to that class i.e. it
cant access out side the class
procted -it's accesesed by the sub class of the ckass
whether that present in the sane package or diffrent but it
must be a subclass
noacces accessed with in the same package
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Is arraylist sorted in java?
What are adapter classes?
Is java 9 released?
What are loops in java?
What is double checked locking in singleton?
What is the difference between a vector & an array list?
how can you take care of mutual exclusion using java threads? : Java thread
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What are the new features in java 8?
what are the high-level thread states? : Java thread
Why collection doesn’t extend cloneable and serializable interfaces?
What is the purpose of garbage collection in java? When is it used?
Can singleton class be inherited in java?
Explain with example the concept of constant variable in java.
What is an interface in java? Explain