how to make hashmap object as synchronized object?
Answers were Sorted based on User's Feedback
Answer / parishudh
Collections.synchronizedMap(<your hashmap reference>)
Is This Answer Correct ? | 12 Yes | 1 No |
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }
2 Answers DNS, IPSR Solutions,
Does java trim remove newline?
What is the difference between a field variable and a local variable?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is difference between module and function?
What is array pointers ?
What is a top level class in java?
What is codebase?
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
Can we sort hashset in java?
Do you know thread pools?
Is java supports multiple inheritance? explain?