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
Are static members inherited to sub classes?
what is static import in java? Explain
What is remote method invocation (rmi)?
What is anti pattern in java?
Can we have this () and super () together?
What are peerless components in java programming?
How do you write methodology?
Where import statement is used in a java program?
What are the basic concepts of OOPS in java?
What are sets in java?
Will minecraft java be discontinued?
What are keywords and reserved words in java?
Is singleton set an interval?
Is hashmap thread safe?
Describe string intern() methodology