Results 1 to 3 of 3
  1. #1
    vagarwal_mca is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Default which are the final classes in the java APi

    Hello All,

    I want to know which are the final class defined in java API and also how to instance a class without using the new keyword

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    how to instance a class without using the new keyword
    Static methods, eg,
    AffineTransform at = AffineTransform.getTranslateInstance(x, y);

  3. #3
    rpwtdj's Avatar
    rpwtdj is offline Member
    Join Date
    Dec 2007
    Posts
    15
    Rep Power
    0

    Default

    The 'java.lang.String' is a final class.
    You can use 'instance()' method of factory to create a class instance.

Similar Threads

  1. What kinds of classes needs to be final.
    By roots in forum New To Java
    Replies: 3
    Last Post: 01-03-2008, 12:54 PM
  2. Replies: 1
    Last Post: 12-11-2007, 04:54 AM
  3. Calling jar classes from java executable
    By SteM in forum Advanced Java
    Replies: 1
    Last Post: 11-27-2007, 08:21 AM
  4. Running java classes with XML
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 06-29-2007, 03:20 PM

Posting Permissions

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