CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS J2EE CORE JAVA DETAILS
    Question :
    What is transient variable?
    Category Core Java Interview Questions
    Rating (0.3) By 1809 users
    Added on 8/24/2009
    Views 1776
    Rate it!
    Answers:

    Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null.



    when the variable is declared as tranisent , then we cannot store its data in persisent satage



    Posted by: soniya    

    Contact soniya Contact soniya

    The transient modifier is variable level.If we give a variable as transient,we are telling the JVM to skip the variable when attempting to serialize the object.



    Posted by: Tapas kumar Bhattamisra    

    Contact Tapas kumar Bhattamisra Contact Tapas kumar Bhattamisra

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is a local, member and a class variable?
    View Answer
    What are wrapped classes?
    View Answer
    What does it mean that a method or field is ?static??
    View Answer
    What modifiers are allowed for methods in an Interface?
    View Answer
    Why operator overloading is not there in java?
    View Answer
    What modifiers are allowed for methods in an Interface?
    View Answer
    What is a local, member and a class variable?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Core Java Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.015625 Seconds