ALLInterview.com :: Home Page Forum9.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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Java-Related >> Java-J2EE >> Core-Java
 
 


 

 
 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
Question
How can you say HashMap is syncronized?
 Question Submitted By :: Acp
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can you say HashMap is syncronized?
Answer
# 1
HashMap is a collection class which is a syncronized class 
why because if one thread is processing one process another 
thread will wait for when running thread will comeout after 
then only next thread will enter into that process that's 
why it is syncronized
 
0
Reddy Edagottu
 
  Re: How can you say HashMap is syncronized?
Answer
# 2
hasmap is syncronized why because if  hashmap is processing
by one thread another thread will wait till the thread 
comeout which currently processing after than only next 
thread process the hashmap
 
0
Reddy Edagottu
 
 
 
  Re: How can you say HashMap is syncronized?
Answer
# 3
First of all I don't think HashMap is Syncronized,is it not 
HashTable
 
0
Maheswari
 
  Re: How can you say HashMap is syncronized?
Answer
# 4
yes u r correct, hashmap is not threadsafe. It is hashtable 
which is synchronized.
 
0
Rahul
 
  Re: How can you say HashMap is syncronized?
Answer
# 5
I agree with you. HashMap is not synchronized.
 
0
Suma
 
  Re: How can you say HashMap is syncronized?
Answer
# 6
hashmap is unsynchronised and hash table is 
synchronised.....hashmap permits null...but hashtable does 
not.
 
0
Dijesh
 
  Re: How can you say HashMap is syncronized?
Answer
# 7
raja vin paarvai raniyin pakkam, kan mooduthe vetkam pon 
maalai mayakam.toku toku toku,java is a very worest 
language in computer or IT field
 
0
Senthil
 
  Re: How can you say HashMap is syncronized?
Answer
# 8
i agree with 3,4,5,6,7 answers .hashmap is not syncronized
 
0
Rajender
 
  Re: How can you say HashMap is syncronized?
Answer
# 9
I am sorry...HashMap is not syncronised. Its not thread 
safe..rather Hashtable is syncronised...
 
0
Jyotisubhra Ghosh
 
  Re: How can you say HashMap is syncronized?
Answer
# 10
Hash map is unsyncronised and hash table is syncronised
 
0
Sunil
 
  Re: How can you say HashMap is syncronized?
Answer
# 11
HashMap is not synchronised, nor thread safe.
 
0
Vikas
 
  Re: How can you say HashMap is syncronized?
Answer
# 12
HashMap is not synchronized.
If u want to synchronized we have to do 
HashMap map=java.util.Collections.synchronizedMap(new
HashMap());
Hash Map permits Key and values are Null.
 
0
Kishore
 
 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
waht happens when a return type ,even void is specified for a constructor?  9
When is an object in the mean to garbage collection?  3
What services that container provides?  1
What is the specification of ?CODEBASE? in an applet?  1
Can you call a private data from an inner class?  3
how to compile jsp? Logica-CMG1
What is an abstract class? Wipro5
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008) Huawei1
What is an enumeration class?  2
What is meant by serialisation and deserialisation?  2
What for read() function?  2
What is file class and what is its purpose?  1
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not???? Accenture7
What is the method used to get the absolute value of a number?  2
What is static and a non-static inner class?  1
How are Observer and Observable used?  2
transaction attributes ?  2
Explain Connection Pooling?  2
how can u handle run time exception in java? explain with brief explanation with examples? CTS2
what is filters and its use? Virtusa1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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