what is a sealed package?

Discussion in 'Java' started by Jking, Aug 2, 2008.

  1. Jking

    Jking Guest

    Hi,

    I am quite confused about what is a sealed package.
    In java.lang.Package, there is a method:

    isSealed()

    or

    isSealed(URL url)

    So why to seal a package ? the usage? how to make a package sealed?

    Anyone could kindly explain it for me?

    Thank you.

    Justin
     
    Jking, Aug 2, 2008
    #1
    1. Advertising

  2. Jking

    Arne Vajhøj Guest

    Jking wrote:
    > I am quite confused about what is a sealed package.
    > In java.lang.Package, there is a method:
    >
    > isSealed()
    >
    > or
    >
    > isSealed(URL url)
    >
    > So why to seal a package ? the usage? how to make a package sealed?
    >
    > Anyone could kindly explain it for me?


    http://java.sun.com/docs/books/tutorial/deployment/jar/sealman.html

    Arne
     
    Arne Vajhøj, Aug 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Parvinder
    Replies:
    6
    Views:
    769
    Thomas G. Marshall
    Feb 27, 2005
  2. Julie

    Why make a class 'sealed'?

    Julie, Mar 3, 2004, in forum: C++
    Replies:
    6
    Views:
    3,866
    Claudio Puviani
    Mar 3, 2004
  3. Bharat Karia

    Sealed Classes in C++

    Bharat Karia, Jan 8, 2005, in forum: C++
    Replies:
    6
    Views:
    17,241
    soumya_velocityreviews
    Dec 9, 2009
  4. Dave
    Replies:
    2
    Views:
    490
  5. Pradeep
    Replies:
    0
    Views:
    824
    Pradeep
    Jul 31, 2006
Loading...

Share This Page