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


Please Help Members By Posting Answers For Below Questions

How to make a write-only class in java?

570


What is a singleton puppy?

525


What are locale settings?

546


What is anagram word?

517


Can we assign null to double in java?

542






Is void a data type?

534


What are the uses of java?

565


What is java autoboxing?

532


Can we define package statement after import statement in java?

556


Variables used in a switch statement can be used with which datatypes?

512


What is the purpose of the System class?

576


What do you understand by classes in java?

552


What do you mean by platform independence of Java?

528


Write a program to print count of empty strings in java 8?

534


Can list be null in java?

572