Overriding finalize() method

Discussion in 'Java' started by Noé R. Barranco, Aug 29, 2003.

  1. Hi Everybody,
    According to the JLS all classes (including array types) inherit from
    Object.
    So, is it possible (based on this fact) to override any of these methods
    (like finalize() for example) in an array ?

    Thanks,
    Noé Barranco
     
    Noé R. Barranco, Aug 29, 2003
    #1
    1. Advertisements

  2. Noé R. Barranco wrote:
    >
    > Hi Everybody,
    > According to the JLS all classes (including array types) inherit from
    > Object.
    > So, is it possible (based on this fact) to override any of these methods
    > (like finalize() for example) in an array ?


    No, you can't subclass an array.

    --
    Lee Fesperman, FirstSQL, Inc. (http://www.firstsql.com)
    ==============================================================
    * The Ultimate DBMS is here!
    * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
     
    Lee Fesperman, Aug 30, 2003
    #2
    1. Advertisements

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. z. f.

    throw exception in the finalize

    z. f., Jul 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    550
    avnrao
    Jul 5, 2004
  2. Joona I Palaste

    finalize() question

    Joona I Palaste, Dec 11, 2004, in forum: Java
    Replies:
    10
    Views:
    953
    Grant Wagner
    Dec 23, 2004
  3. Will
    Replies:
    14
    Views:
    2,469
  4. ankur

    Question on finalize method

    ankur, Nov 8, 2008, in forum: Java
    Replies:
    12
    Views:
    777
    Roedy Green
    Nov 9, 2008
  5. Daniel Schierbeck

    `finalize' method?

    Daniel Schierbeck, Nov 25, 2005, in forum: Ruby
    Replies:
    17
    Views:
    420
    Eric Mahurin
    Nov 30, 2005
  6. andrey
    Replies:
    0
    Views:
    283
    andrey
    Dec 15, 2007
  7. Andrey Nikitin
    Replies:
    1
    Views:
    281
    Nobuyoshi Nakada
    Dec 16, 2007
  8. Koszalek Opalek

    Overriding a class method with an object method

    Koszalek Opalek, Jul 2, 2007, in forum: Perl Misc
    Replies:
    8
    Views:
    297
    -berlin.de
    Jul 6, 2007
Loading...