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   To Refer this Site to Your Friends   Click Here
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
Explain about global variables in Java?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain about global variables in Java?
Answer
# 1
Global variables are not possible in java because the 
concept of Encapsulation is eliminated here.it is not in 
the main() method where we declare variables.
 
Is This Answer Correct ?    2 Yes 0 No
Niranjanravi
 
  Re: Explain about global variables in Java?
Answer
# 2
global variables are declared globally and not inside any
method.
They are applicable to all the parts of the class
 
Is This Answer Correct ?    1 Yes 0 No
Ravikiran(aptech Mumbai)
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What are null interfaces? Give some examples?  2
Difference between Applet & Application?  5
Same common question what is Map,Set,HashMap,List???? Symphony3
Difference between String and String Buffer?  3
What is the differnence between String Buffer and String builder despite having knowledge that String builder is faster than String Buffer and last one is threadsafe.please tell another important difference.  3
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p? HCL5
What is the range of the char type?  2
what is session facade ?  2
I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.  1
Can we override static methods? Bally-Technologies15
how to handled exceptions & erros in ejb? Satyam1
What is ResourceBundle class?  1
How can a class be accessed, If no access modifiers are declared?  2
how to write a program for chat function using core java Satyam1
what is java bean?where can we use it? TCS3
What are the common problems you have faced while implementing Java?  1
what are class,constructor and primitive data types?  2
How Applets & Servlets will communicate with each other?  2
how to minimize the functionality to will not force garbage collector?  2
when,where and how to use abstract class and interface  2
 
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