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 / malay tripathi
I guess if members of interface are declared final then
they can't be overridden & hence this hampers the logic
behind having interfaces...
Interface can only be Public/Default or abstract.In any
other case it can't be overridden & hence of no use.
MemberFunctions also behave similarly.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Why java is considered dynamic?
Can we create object of static class?
What does yield method of the thread class do?
Can we split string with in java?
Implement a stack with push (), pop() and min() in O(1) time.
Does java arraylist maintain insertion order?
Explain about map interface in java?
What are data types in oop?
Is hashset ordered?
Is vector thread safe in java?
What does opcode mean?
What is object data type?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Are static members inherited to sub classes?
Can you inherit from an abstract class java?