ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
In Serialization, whether you will use Static variables?
 Question Submitted By :: Rajani
I also faced this Question!!     Rank Answer Posted By  
 
  Re: In Serialization, whether you will use Static variables?
Answer
# 1
Static variables are not serialized during object serialization.

If u want to serialize static fields, then u must use ur own
serialization overrides and implement the
java.io.Externalizable interface on the class.
 
Is This Answer Correct ?    2 Yes 1 No
Ranganathkini
 
  Re: In Serialization, whether you will use Static variables?
Answer
# 2
We cannot serialize the static variables because static is 
specific to the class not for the objects.
 
Is This Answer Correct ?    5 Yes 0 No
Chandramouli
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is auto boxing UHG1
What classes of exceptions, caught by a catch clause?  1
Why we need to serialize the object Geometric-Software9
Functionality of JVM? Infosys4
In Java why we write public static void main(String args[]) why not main()? TCS12
What are integer overflows and underflows and how to handle them? Wipro2
Explain the differences between public, private, protected and static?  3
types of applets?. TCS3
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?  1
where lives in jvm  3
what is life cycle of applet?  4
Program to find greatest prime number in n numbers? Huawei3
Can a class inherit the constructors of its superclass? Wipro7
Can u write constructor in abstract.If yes den when it will be invoked. SunGard3
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet? Systematix1
what is mean by method signature? Satyam5
Which class is extended by all other classes?  2
How can you say HashMap is syncronized? IBM13
Is there is any error if you have multiple main methods in the same class? Wipro9
why java is not supporting multiple inheritence?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com