Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    0

    Default Top level and member level

    I have been reading the Java Tutorial and keep running across the references top level and member level

    example

    At the top level—public, or package-private (no explicit modifier).
    At the member level—public, private, protected, or package-private (no explicit modifier).

    What exactly do these refer too? By member level are they refering to instances of classes in some way? Thank you very much for any input! :D

  2. #2
    Join Date
    Jul 2010
    Posts
    6
    Rep Power
    0

    Default

    I think i might understand now. I was reading a section on nested classes and it said this,

    "As a member of the OuterClass, a nested class can be declared private, public, protected, or package private. (Recall that outer classes can only be declared public or package private.)."

    So the top level is outer classes and can be either public or package-private and the inner classes are the member level and can be either four of the access levels? Is this correct? Thanks!

Similar Threads

  1. [SOLVED] Class-level vs Object-level method()
    By mfaizan24 in forum New To Java
    Replies: 7
    Last Post: 06-23-2009, 09:18 AM
  2. How to disable one particular Log.Level in log4j
    By bhupal4all in forum Advanced Java
    Replies: 0
    Last Post: 11-25-2008, 07:43 AM
  3. Row level locking........
    By jithan in forum New To Java
    Replies: 0
    Last Post: 09-02-2008, 07:09 AM
  4. row level locking
    By jithan in forum New To Java
    Replies: 1
    Last Post: 08-28-2008, 06:42 PM
  5. Field Level Security
    By narayanasgs in forum Web Frameworks
    Replies: 0
    Last Post: 05-30-2008, 08:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •