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 / vishal arora
This question leads to two things
1. modifier for abstract class or interface
2. modifier for members of abstarct class or interface
For first in abstract class and interface we can have
public , protected and default and not private if it is top
level otherwise private also if it is nested
for point 2
in an interface every member variable is public and final
in an abstract class you can assign any modifier to member
variables
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is advantage of java?
What is an immutable class? How to create an immutable class?
How do you trim a space in java?
What is unmodifiable list in java?
What are multiple inheritances?
how to one war file class to another war file class?
What does it mean to flush a file?
Which oo concept is achieved by using overloading and overriding?
What is string buffer?
How does the java compiler work?
What is argument in java?
What is meant by data hiding in java?
What are the main uses of java?
What language is java written?
Difference between process and thread?