Prepare for your Next Interview
This is a discussion on Can a final interface has an abstract method? within the Java forums, part of the Software Development category; Can a final interface has an abstract method? this is very tricky question. So, Plz be careful to provide me the correct answer. -thanks & regards kaushal k sharma...
|
|||
|
Can a final interface has an abstract method?
Can a final interface has an abstract method?
this is very tricky question. So, Plz be careful to provide me the correct answer. -thanks & regards kaushal k sharma |
| The Following User Says Thank You to kaushalksharma For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Can a final interface has an abstract method?
implicitly every interface is public abstract.
and u cant use abstract and final with same time because abstract=must be inheritated. final=must not be inhreitated. both goes in diff. way. and all the method of interface is implicitly public abstract. so means final interface cant be happen. |
|
|||
|
Re: Can a final interface has an abstract method?
Interface are only used to support multi inheritance in java that means we have to inherit more than one interface in java. But a class or interface qualified with final can not be inherited so there is no meaning of final interface.And now u cat
put a abstract method there. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between interface and abstract class? are they both same | mahesh9920 | OOPS | 17 | 2 Weeks Ago 02:44 AM |
| Diff B/W Interface & Abstract class | sforsree | Java | 7 | 09-30-2008 02:52 AM |
| Abstract, final and static keywords | Geek_Guest | Java | 2 | 12-25-2007 09:48 AM |
| difference between abstract class and interface | manipalreddy.s | Java | 12 | 10-25-2007 07:06 AM |
| Confusion with ABSTRACT and INTERFACE | Geek_Guest | Java | 2 | 05-07-2007 04:38 AM |