How can you say HashMap is syncronized?
Answer Posted / aruna kadaari
By using the below statment we can stnchronize the hashmap
Hashmap hm = new Hashmap();
Map m = Collections.synchronizedMap(hm);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does constructor return any value?
What is an interoperable application in java ?
What is scanner in java?
what type of questions asked for barclays technologies pune please send urgent
How to reverse string in java?
What is the final keyword in java?
Define max and min heap, also the search time of heap.
What environment variables do I need to set on my machine in order to be able to run java programs?
What is thread pool? How can we create thread pool in java?
Why string is not a wrapper class?
How is java hashmap implemented?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is tochararray in java?
What is defined as false sharing in the context of multithreading?
Explain about features of local inner class?