What is a Transient Variable and when should it be used

Hello everyone,
I just want to know the details regarding the transient variable and when should we use it. what is the significance of this variable?

Transient variables are not written out when the class is serialized.
http://java.sun.com/docs/books/tutorial/essential/io/providing.html

Similar Messages

  • When should I use static variable and when should not? Java essential

    When should I use static variable and when should not? Java essential

    Static => same value for all instances of the class.
    Non-static => each instance can have its own value.
    Which you need in which circumstances is completely up to you.

  • What are the mapfiles for and when should I use them?

    Hi,
    what are the map files for and why/when should I use them?
    /usr/lib/ld/map.noexstk
    usr/lib/ld/map.noexbss
    /usr/lib/ld/map.noexdata
    /usr/lib/ld/map.pagealign

    Hi, I'm sure you've read the comments, but for the benefit of those who haven't: /usr/lib/ld/map.noexstk # Linker mapfile to create a non-executable stack definition within an # executable. /usr/lib/ld/map.noexbss # Link-editor mapfile to create a non-executable bss segment definition # within an executable. /usr/lib/ld/map.noexdata # Link-editor mapfile to create a non-executable data segment definition # within an executable. These stop the various segments from being executable. Which could reduce the risk surface for exploiting security holes in an application. /usr/lib/ld/map.pagealign # Linker mapfile to create page-aligned data within an executable. Aligning the start of the data segment can reduce the number of TLB entries needed to map the data. So the smallest TLB page size is 8KB, then we have 64KB, then 4MB etc. If the data starts on a 4MB boundary then it can be mapped with 4MB pages, if not then it has to be mapped with 8KB pages until a 64KB boundary, then 64KB pages until we get to a 4MB boundary. You sometimes get a bit of performance from this, but you may also get performance stability from it. If the mapping is random sometimes it works well, sometimes it works less well. Regards, Darryl.

  • I have a MAC and when I try to use Adobe Reader, I get a pop up telling me I need to accept the end user agreement. It instructs me to go the Abobe Reader Installer download , double click and accept the agreement, but there is no agreement.  What should

    I have a MAC and when I try to use Adobe Reader, I get a pop up telling me to lauch ADobe Reader and accept the end user license agreement, but when I do that, there is no agreement to acknowledge.   What should I do?

    I have the same problem as Pam101. I am on OS X 10.9 and Safari 7 (actually on 2 iMacs). The one iMac is fine but the other with the same versions and settings Adobe Reader will not work. What happens is the Adobe Reader icon appears on the dock, bounces once and that's it. When trying to open a .pdf file from a website a new tab is opened on Safari, the background is black and there is a pop up message (black test on a white background) that reads: "Adobe PDF Before proceeding you must first launch Adobe Acrobat and accept the End User License Agreement." This is all very well but if Adobe Reader will not launch how on earth is it possible to accept the End User License Agreement terms? Very, very annoying, especially since it all works just fine if I launch a .pdf file from a website using Chrome. What is going on here and who do I talk to in order to fix this problem - Apple or Adobe?

  • What is the difference between saving to "Documents" and "Macintosh HD" and when should you use each one?*

    What is the difference between saving to "Documents" and "Macintosh HD" and when should you use each one?

    When you save to the folder with the little house icon, the file is placed at
    /Users/your_user_name/
    You would really have to go out of my way to save at:
    (the shortcut for the Boot Drive, regardless of its name).
    I am not sure how you decided that Time Machine is not saving your files. The default is for Time Machine to do incremental Backups of everything on all attached drives, except for certain temporary information in Cache files. If you have four Users, Time Machine will back them all up.
    Looking at the raw Time Machine backups will tell you very little, because it does lots of its work with Hard Links, and because it does incremental backups, so only files that changed since the last Backup are saved at thet cycle. The way to determine whether Time Machine is saving things is to display the window you care about in the Finder, then invoke the "Star wars"/ "Back, back, back in time" Interface.

  • OBIEE 11g, BI Apps EBS: What are default security variables and Init Block

    Hi,
    We are implementing BI Apps 7.9.6.3 [OBIEE 11.1.1.1.5 with EBS modules]. Out of the box RPD and mappings.
    There are many VARIABLES and INIT BLOCKS in the RPD. Some of them are mainly for Siebel, Jd Edwards etc.
    I need to know what are the default variables and Init Block configures in RPD. Also it will be highly appreciated if anyone can point out what segments we should configure if we need to implement security with simple database table authentication with SSO?
    Thanks in advance.

    You should review this doc for the options for EBS/OBIA security:
    http://docs.oracle.com/cd/E20490_01/bia.7963/e19042.pdf
    If helpful, pls mark as correct or helpful.

  • I reset my macbook pro a few days ago.. and when i started to use it again i noticed all my apps were gone (keynote, iMovie, garage band, etc) i don't know how to get them all back and every time i try it tells me i must buy them.. what do i do?

    I reset my macbook pro a few days ago.. and when i started to use it again i noticed all my apps were gone (keynote, iMovie, garage band, etc) i don't know how to get them all back and every time i try it tells me i must buy them.. what do i do?
    should i come into the actual apple store or can you help online ?

    Hi vickkjayy11 and welcome to Apple Support Communities,
    Just to be clear, we are a peer to peer support community and have nothing official to do with Apple.
    So to your problem, when you say:
    "I reset my macbook pro a few days ago"
    What exactly happened? Did you have a Time Machine backup?
    Read this:
    OS X: About OS X Recovery - Apple Support
    It would help to know the exact model (size and year) and which OS you're using.

  • When should a subclass have its own fields and when should it use its super

    When should a subclass have its own fields and when should it use its superclass' fields?
    Hi, thank you for reading this post!
    Let me use a specific example to ask my question.
    public class BankAccount {
         private double accountBalance;
         public double getBalance() {
              return this.accountBalance;
    public class SavingsAccount extends BankAccount {
         private double accountBalance;
         public double getBalance() {
              return this.accountBalance;
    }In the bank account example, both BankAccount and SavingsAccount will have a method getBalance(). Therefore, they
    both require a account balance field. My question is since getBalance() for both classes will perform the exact same
    operation, when should I omit declaring the getBalance() method and the accountBalance field in the subclass, and
    when should I include them?
    My own thought is when we never have to instantiate a superclass object (e.g. an abstract class), then we place
    common fields in the abstract superclass and have subclasses access these fields via protected getter/setters to
    access the superclass' fields. This is the principle of reuse.
    But when you do need to instantiate a superclass and the superclass does need to maintain its own fields, then
    I would need to duplicate the accountBalance field and getBalance() method in the subclass.
    Is my thinking correct or incorrect?
    Thank you in advance for your help!
    Eric
    Edited by: er**** on 22-Aug-2011 20:19

    er**** wrote:
    If SavingsAccount inherit BankAccount.getBalance()...getBalance() would return BankAccount's accountBalance. This is NOT the correct result we want.Actually, I think it's precisely what you want.
    We want getBalance() to return BankAccount's accountBalance when we use a BankAccount object, and SavingsAccount's accountBalance when we use a SavingsAccount object.I seriously doubt that. I think you're confusing a BankAccount with a Customer, who can have more than one account.
    In every system I've ever seen, a SavingsAccount IS-A BankAccount - that is to say, it's a genuine subtype. Now, it may well contain other fields ('interest'?) that a normal account wouldn't, but 'balance' ain't one of them.
    Winston

  • I bought 120 gold in Haypi dragon on Mar 12 and 15 2012 , but I havenot received them yet.What is wrong with it ,and when i can reveive them ?

    I bought 120 gold in Haypi dragon on Mar 12 and 15 2012 , but I havenot received them yet.What is wrong with it ,and when i can reveive them ?

    For in-app purchases you should contact the developer's customer support, assuming there is one.

  • I need help, speach over got accidently turned on in my Iphone 6, now i cant get into my phone it wont take my pass word and when I try to use Siri it says not available  what do I do

    I need help, speach over got accidently turned on in my Iphone 6, now i cant get into my phone it wont take my pass word and when I try to use Siri it says not available  what do I do

    Hi, Jennifer.  
    Thank you for visiting Apple Support Communities.  
    I understand that VoiceOver has been activated and you are unable to access your device.  I have done this myself and here are the steps to disable this feature.  
    VoiceOver
    Press the home button three times quickly (formerly "Triple-click home").
    Accessibility Shortcut
    Managing Accessibility features using iTunes
    Connect your iPhone, iPad, or iPod touch to any computer with iTunes installed.
    In iTunes, select your device.
    From the Summary pane, click > Configure Universal Access in the Options section at the bottom.
    Select the feature you would like to use and click OK.
    Use Accessibility features in iOS
    -Jason H.  

  • I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    I have downloaded a trail version of adobe acrobat pro and when I try to use it, it says that it cannot be edited in acrobat, please use adobe livecycle designer to edit this form. I can't work out what I need to do?

    Acrobat XI is not distributed with Designer. Designer is now a separate product. You can create forms in Acrobat as an AcroForm or using Forms Central (an online forms program). You can print the form to a new PDF and then recreate the fields in Acrobat using the recognize form fields. You will likely have to fix the form fields, but that would be the process. Generally, once a form is taken to Designer, you can't bring it back without such steps.
    Designer is available with AA8 - AAX, but since is a separate product as I indicated.

  • What is the necessity of the AC power cord (with Mac Book Air)? When should it be used with the power adapter?

    what is the necessity of the AC power cord (with the Mac book Air)? when should it be used?

    Gary, you wouldn't believe some of the questions people ask on this site.
    Why are both cords necessary?
    They are not.
    Other than the two reasons dominic23 sited are there any other reasons to use the AC power cord rather than the power adapter cord alone?
    No.

  • What is a cloned DataSource and when do we need it?

    Hi,
    Could anybody tell me what a cloned DataSource is and when we need it? How to make a clone from a datasource? Thanks

    When you need to perform more than one thing with a DataSource (like saving to a file and broadcast a webcam stream) you need to clone the WebCam Datasource to create two differents graphs, one for saving to a file, and other for broadcast.
    The cloned DataSource will only repeat the stream that the cloned DataSource is producing.
    Use the methdos im Manager to create a clone.
    RGB

  • What is a customer statement and when do we use it?

    Hi,
    What is a customer statement and when do we use it? An example in terms of business scenario would surely help me.

    Hi,
    In business sense Customer statment is the list of  transactions that were executed over a period of time.
    When ever customer buys the material from the company bill is generated and the same is debited to his account.
    whenever customer pays the amount to the company, the amount will be credited to his account.
    So the Customer statment will have the list of DEBIT and CREDIT entries.
    There will be Reconciliation for every quarter with the customer by the company sales executive and related price, discounts, freight which might be excess or less will be settled

  • What is a Factory method and when to use this concept?

    Could any one please describe what a factory method is and explain how I can use it by giving a simple example

    A Factory Method (sometimes called a "virtual constructor") is a way to avoid hard coding what class is instantiated. Consider:
    DataSource myDataSource = new DataSource();Now, if you want to use some other DataSource in your app, say, an XMLDataSource, then you get to change this code and all subsequent lines that use this, which can be a lot. If, however, you specified and interface for your DataSources, say, IDataSource, and you gave the DataSource class a static "create" method that would take some indication of what sort of DataSource to actually use, then you could write code like:
    IDataSource myDataSource = DataSource.create(dataSourceString);And be able to pass in a dataSourceString describing what DataSource you wanted to use - and not have to recompile. Check out the Java Design Patterns site ( http://www.patterndepot.com/put/8/JavaPatterns.htm )
    Make sense?
    Lee

Maybe you are looking for

  • Clearing GL open item

    Hello, There are lots open item exists in the GL a/c ,that items comes from WE document type ie material documents. Kindly suggest me how to reverse those document in GL a/c or how to clear all those items. F.13 is also not working on it. Suggest,

  • Accessing Dictionary devlopment component in Web dynpro component

    Hi I want to access a table created in the java dictionary development component in webdynpro. I dont want to use the EJB for doing this. Regards NagaKishore V

  • Default of Profit Center in the Documents on the Basis of GL Accounts

    Hoe to default the profit center in the Documents on the basis of the GL Accounts.

  • NEED A HELP: problem with setting up AP 1140

    Hello everybody, I did finish all the configuration steps for Cisco Aironet 1140 AP1140 mentioned in the manual and AP start showing green indication: Step 1 The static IP address of the PC on which your TFTP server software runs should be between 10

  • My Macbook Air crashing and restarting

    I get the following error, it happens mainly while browsing with Safari Anonymous UUID:       03C0D7C0-2689-FD43-3E7E-426F6F7F145C Sun Oct 19 02:06:53 2014 panic(cpu 1 caller 0xffffff8008adc43e): Kernel trap at 0xffffff8008bc6ffe, type 14=page fault,