Results 1 to 8 of 8

Thread: Can a final interface has an abstract method?

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    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


  2. #2
    Junior Member
    Join Date
    Jan 2007
    Answers
    15

    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.


  3. #3
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Re: Can a final interface has an abstract method?

    yes by default abstract methods are public.....


  4. #4
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    Re: Can a final interface has an abstract method?

    The interfaces are cannot final... So final Interface is not a abstract method


  5. #5

    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.


  6. #6
    Junior Member
    Join Date
    Sep 2010
    Answers
    1

    Re: Can a final interface has an abstract method?

    I was being "successfully" misled on this question last time. interface and abstract is like open contract to be implemented. it can NEVER mix with final.

    last time the question is, "final" is used to disable override, or extend. then for interface, if use "final", it would disable the interface extending, however, still leave it implementable?


  7. #7
    Junior Member
    Join Date
    Nov 2010
    Answers
    5

    Re: Can a final interface has an abstract method?

    What do you mean by Final Interfacre, there is no interface in the world which is final .


  8. #8
    Junior Member
    Join Date
    Oct 2010
    Answers
    1

    Re: Can a final interface has an abstract method?

    interface cant be a final at all


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact