Results 1 to 5 of 5

Thread: Interface as protected / private

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

    Interface as protected / private

    Can we define Interface as protected/private instead of public? What happened in that situations? Please provide complete details..


  2. #2
    Junior Member
    Join Date
    Aug 2008
    Answers
    5

    Re: Interface as protected / private

    <<public/default>> interface interfacename{static variables; abstract methods}


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

    Re: Interface as protected / private

    difference between finance & accounts


  4. #4

    Re: Interface as protected / private

    Interface defaulty it is public.
    The sun specification for interfaces is it must be accessible from any class and from any package.
    If we are declaring that as protected or private we are not giving ability to access from all other packages.


  5. #5
    Junior Member
    Join Date
    Sep 2008
    Answers
    1

    Re: Interface as protected / private

    If interface is define as protected or private, that means we can't access that interface from all other packages, but interface specification is said by sun "interface must be accessible from any class and any package".


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