What are the uses of declaring a class "final"?

Can any one please tell me the uses of declaring a class "final"?
I know that final classes cannot be extended. Other than this,
Is there any thing that will improve the compiler time for the final classes?

compiler performance is utterly unimportant anyway...
If the compiler takes too long, just get a faster build system :)

Similar Messages

  • What are the uses of Void wrapper class?

    Hi,
    Similar to other Wrappers, Void is a wrapper class for the primitive ' void ' . We all know that Void is a final class , we can't instantiate it.
    My Question is what are the uses of Void?
    thanks,

    kajbj wrote:
    I have at times used it in reflection and jmx.I have used them with SwingWorker if I didn't have anything interesting to return. There is also an example in the tutorial: [http://java.sun.com/docs/books/tutorial/uiswing/concurrency/simple.html]

  • Why do we use open URL in default browser function? What are the uses of it?

    Why do we use "open URL in default browser" function?  What are the uses of it?

    kdm7 wrote:
    Okay.
    So can we keep a web button to access the www.ni.com ? So that web site opens only when button pressed?
    P.S  I,m a newbie.
    Yes, you can also, e.g. include a help file or manual as html and open that in the browser.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • What are the uses of portal

    Hi,
    Iam new to Enterprise portal.
    Can anybody tel me what are the uses of portal
    correct me if iam wrong " EP can be used from anywhere where the internet conncetion is available and anybody who is authorised to view the content"
    Thanks in advance
    SAI

    Hi,
    Your statement is correct. To be crisp, the portal offers a single point of access to SAP and non-SAP information sources, enterprise applications, information repositories, databases and services in and outside your organization—all integrated into a single user experience. It provides you the tools to manage this knowledge, to analyze and interrelate it, and to share and collaborate on the basis of it.
    With its role-based content, and personalization features, the portal enables users—from employees and customers to partners and suppliers—to focus exclusively on data relevant to daily decision-making processes
    To read more visit,
    http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
    Regards
    Srinivasan T

  • What are the uses of MVC, Extension and how to create it for begineers pls

    what are the uses of MVC, Extension and how to create it for begineers pls
    dont give link for tutorials please explain ,
    thank you,
    Regards,
    Jagrut BahratKumar Shukla

    Hi,
    Check out this link :
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/content.htm</a>
    It is the best possible explanation and documentation that you'll get.
    Thanks,
    Tatvagna.

  • What are the uses of diffrent concepts in data warehousing

    What are the uses of diffrent concepts in data warehousing? Why?
    naveen

    Hi,
    Your statement is correct. To be crisp, the portal offers a single point of access to SAP and non-SAP information sources, enterprise applications, information repositories, databases and services in and outside your organization—all integrated into a single user experience. It provides you the tools to manage this knowledge, to analyze and interrelate it, and to share and collaborate on the basis of it.
    With its role-based content, and personalization features, the portal enables users—from employees and customers to partners and suppliers—to focus exclusively on data relevant to daily decision-making processes
    To read more visit,
    http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
    Regards
    Srinivasan T

  • What is the use of an abstact class?

    Hi friends,
    why we need to the abstract class...in which scenario????????
    Thanks

    ghostbust555 wrote:
    THe abstract class is very useful because you can force people who extend a class to override a method.That does not do anything to explain the use of an abstract class.
    For example when I was creating JavaPoint (sourceforge.net/projects/javapoint) I created an object called GraphicObject. It cotained code for different things related to drawing images and shapes on the screen. But the method to convert each GraphicObject to XML for saving was made abstract because each different type of GraphicObject (CircleGraphicObject, SquareGraphicObject ...) needed different code to turn it into XML. Thats just one example there are many many uses for it though.That almost kinda sorta explains the user of abstract classes.
    @OP: The use of an abstract class is when you 1) want to define a type--that is, what some particular type can do, 2) want to allow different, independent implementations of that type, and 3) want to provide a reasonable default implementation for some of that type's operations.

  • What are the uses of Dashboard

    what is the uses of dashboard for mac mini?
    where i can find dashboard widgets?
    can i put widgets on my desktop?
    thanks a lot!

    You can download and install Dashbord widgets here >  Apple - Downloads - Dashboard
    No... widgets cannot be used directly on the Desktop.
    Just click the Dashboard icon in your Dock to access installed widgets.

  • What are the settings I have to set Final Cut pro to to be able to read my Panasonic AVCCAM when trying to transfer files?

    I am trying to transfer my HD files from my Panasonic AVCCAM to Final Cut Pro X. What are the proper set up settings to get Final Cut to read the camera?

    If using camera or card reader just click File\ click import from camera

  • HT4589 What are the computer requirements or specs for Final Cut Pro

    What are the computer specs required for Final Cut Pro?
    Also is anyone operating Avid Media Seven on an OS X Lion 10.

    Lynn Kielley wrote:
    What are the computer specs required for Final Cut Pro?
    http://www.apple.com/finalcutpro/specs/
    Even though it says 4 GB RAM recommended, I think most experience users woild say 8 GB and up is the real minimum.
    Can't answer the Avid question.
    Russ

  • What is the use of have 3 Class loaders and why not only one

    In java we have 3 class loaders i.e BootStrap loader, Extension loader and System loader. Why can't we have just one?
    And what is the user of Extension loader?

    user7041221 wrote:
    In java we have 3 class loaders i.e BootStrap loader, Extension loader and System loader. Why can't we have just one?
    And what is the user of Extension loader?This has to do with one of the most advantages of OOP, reusability.
    First comes the Bootstrap class loader, it loads the classes contained in java.lang
    Next comes the Extention classloader, which loads vendor specific classes, like in case of SUN jvm the extention classloader will load the jars contained
    in /jre/lib/ext, that is why if you place any jar file in this directory, it will automatically be loaded at runtime. Suppose you place log4j.jar in this directory in this directory, now if you check the classpath[if you use eclipse, it is very easy to find out],log4j jar willl be there, you will now not have to explicitly add the jar in the classpath again. If any other vendor supplies JVM ,he/she will place their vendor specific classes in this directory.
    Last but not the least, the system classloader, it loads the classes in your application, example can be, when you use jdbc and do this :
    Class.forName("")
    system classloader is loading the class for you, there are two types: static and dynamic class loading.
    Now all these classloader follow the same rule, first it asks its parent classloader to load a class for it, system classloader will ask the extention classloader
    to load a class when needed, and if the extention classloader has already loaded the class, that class will not be loaded again. If the class could not be loaded by ext class loader, the the system classloader tries to load it. Relation between ext and bootstrap class loader is same. If the class not found ClassNotFoundException is thrown..
    For more details..check the specification.

  • How to find out what are the functions supported by string class

    Hi,
    Can any one let me know how to find what are all the functions supported by the string class in standard(STL) library on solaris.
    Regards,
    Vignesh

    1. Any C++ textbook that covers the Standard Library will tell you about the standard string class. A good tutorial and reference for the entire Standard Library is "The C++ Standard Library" by Nicolai Josuttis, published by Addison Wesley.
    2. WIth Sun C++, the command
    man -s3C++ basic_string
    provides documentation for the default libCstd version of the Standard Library.
    3. You could look at the <string> header itself. I don't recommend that approach.

  • What are the uses for AW?

    I have yet to find a use for AW that excel or word or pages or keynote could not do.
    So i was wondering what is the program being used for?

    I agree, although I suspect anyone looking specifically at Word, Excel, and Keynote/PowerPoint are not using databases (although many do not, but are trying really hard to make excel into a databse!).
    I've been using FileMaker so long, that I find AW database to be underpowered, but for the price, the database tool in AW is very good for flat databases.
    When one comes to the point of needing a relational database, FileMaker can't be beat -- expecially when compared to Access on PCs,...FileMaker is far simpler and more intuitive (at least to me), and development time is very fast.
    Barbara's example is one where I bet a relational database would be very useful,...something to consider,...

  • Package question - what are the uses for  /var/sadm/pkg ?

    I'm writing packages and noticed once a packages is installed using pkgadd, that files and dirs are created in the /var/sadm/pkg directory. I'm specificly intereseted in the pkginfo file - it contains all the variables from my request script and their values. My question is what are all the uses for this file?
    I've noticed that pkginfo reads from it but would there be any problem deleting certain lines from that file (lines not used by pkginfo - just variables used in the request script that I'd really rather not have floating around in a publicly accessable file).
    thanks!
    Bob

    I'm refering specificly to the file "/var/sadm/pkg/<pkgName>/pkginfo" - it's created during pkgadd and contains all the variable-value pairs from the packages pkginfo file as well as any variables used in the request script and copied to it's temporary response file. I'm not refering to the pkginfo file that you create as a package infofile component.
    I want to remove, from the /var/sadm/pkg/<pkgName>/pkginfo file, certain var-value pairs that were used in my request scripts (not part of the InfoFile/pkginfo component). Otherwise, any user can look at this file or run 'pkgparam <pkgName>' and get that sensative info.
    To the best of my knowledge, this file is only used by the commands pkgparam and pkginfo. Are there other uses?
    My worries are:
    -is it OK to remove lines manually during the postinstall script?
    -will doing this cause problems with any admin or package maintenance functions?
    Thanks-
    Bob

  • What are the uses for Macbook pro and Macbook air?

    Hi! I am deciding between MBA and MBP and need to know what the different uses for each one was. Like what would you use the MBA for and what would you use the MBP for?? All opinions welcome!!

    They're actually pretty comparible in what they can do if you're talking about the base model of both (say 13") with 4GB RAM. At that level, the Pro has the advantage if you're going to watch or burn DVD's or CD's, as the Air has no optical drive. But otherwise, they're pretty much the same--full-sized, backlit keyboard, camera, beautiful screen, etc. If you're going for more than a basic 13" Pro, then things start to change. For example, you can get up to 8GB RAM on the Pro, and a huge hard drive, you can also get a 15" or 17" size. You will be paying a lot for these, but, obviously, if you're going to be working on, say, making videos (which you may then want burn onto disk) the Pro is very much what you'll want.
    However, if you don't need or want any of that--if, for example, you plan to do the usual programs (word processing, games, web surfing, music, etc.), then you really won't see much difference between the two. At 4GB RAM and a 13" screen, the big difference is going to be thickness and weight, not power. And in this the Air will have the advantage--it's really amazingly slim, light and with a SSD, faster (you pay extra--a lot extra--to get SSD on the Pro).
    Just to make the point, I switched from a 13" Pro to an 11" Air. My hard drive size is half what it was with a Pro, but I was barely taking up half of that amount on the Pro, and so have plenty of room on my 128GB Air (you can get 256GB for the 11" if you order it online). Absolutely everything my Pro did, my Air does (sans optical drive), only faster and lighter and more compact--meaning it takes up less table space, slips in and out of my bag faster, balances on my lap easier, etc. But there was no interruption of service--I switched pretyt seamlessly from 13" Pro to 11" Air.
    The Pro offers you more options for power, screen size, HD size and optical drive. But it's really pretty surprising how few of us need that much power, that much room, or the optical drive. It's very freeing to realize that less can be more than enough.

Maybe you are looking for