• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dan's Mock Exam Chap 7 Explanation 12: "An interface is implicitly static"

 
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is a top-level interface implicitly static as well? This does not make sense to me.
Should the explanation read "A member interface is implicitly static...".
Correct me if I'm wrong here.
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've probably already done this research.
JLS 9.1.1 The access modifier static pertains only to member interfaces.
JLS 8.1.2 Member interfaces are always implicitly static so they can never be considered inner classes.
(I have always regarded the second sentence a bit odd. Who would think an interface was an inner class?)
I realize I did not answer your question. This is as close as I can get.
[ June 29, 2003: Message edited by: Marlene Miller ]
 
Alton Hernandez
Ranch Hand
Posts: 443
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Marlene.
I just realized that if you were to take the explanation within the context of the question, you would realize that it does mean that - a member interface. It just get confusing sometimes when you had answered so many mock questions with the like of "Which of the following modifiers...."
reply
    Bookmark Topic Watch Topic
  • New Topic