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
How to synchonise HashMap
 Question Submitted By :: Srinivasa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to synchonise HashMap
Answer
# 1
we can use to Collections.syncroniseMap() to synchronize 
the HashMap
 
Is This Answer Correct ?    5 Yes 0 No
Srinivasa
 
  Re: How to synchonise HashMap
Answer
# 2
Collections.synchroniseHashMap()
 
Is This Answer Correct ?    1 Yes 1 No
Sreenu Karampudi
 
 
 
  Re: How to synchonise HashMap
Answer
# 3
This is method for synchronise HashMap
  Map m1=Collections.synchronizedMap(Map m)
 
Is This Answer Correct ?    3 Yes 0 No
Srinu
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.  2
Explain Stream Tokenizer?  3
Name the methods in mouse listeners ?  3
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access? Verizon1
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem? Honeywell2
How can you sort dates? TCS1
write the hierarchy of component class?  1
If set accepts only one argument then how can it compare two objects to avoid duplicates  3
Why Wait and notify are kept in Object class although they are used only with Thread Class Saksoft2
What are other modifiers? Wipro1
what is web.xml?and its use? CTS6
How can you take string into InputStream?  3
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ????? Kanbay3
how session will be expired ? Satyam2
What error occurs if a try-catch-finally statement sequence does not have a catch clause?  2
Write a program to create a binary Tree ?  1
What is meant by class loader and how many types are there? Apple1
Difference between Choice and a List?  1
when to use abstract class and when to use interface? IonIdea5
How the elements are organized in CardLayout?  5
 
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