how can we synchronize Hash map?
Answers were Sorted based on User's Feedback
Answer / prabhu
hasgmap hs=new hashmap();
vector v =new vector (hs);
| Is This Answer Correct ? | 2 Yes | 10 No |
what are the analysis of an object
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }
what is the difference between pagecontext and servletcontext?
What is parse method?
Why is stringbuffer not immutable?
how to create constants in java?
What are the principle concepts of oops?
Can Java be said to be the complete object-oriented programming language
Why is flag used in java?
33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac
How do you use final keywords and final variables in Java?
What is the maximum size of list in java?