• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Collections.synchronizedMap?

 
Ranch Hand
Posts: 603
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I need a clarification on the below.

1>

what does the above statament mean and how is synchronization internally carried on when synchronizedMap(K,V) is called.Please explain me in lehman terms...

2> What is StackOverflowError,when does it occur in a java program, how do you resolve it in java.?
Could you provide me steps to overcome StackOverflowError ??


Help provided will be highly appreciated.

--
Deepak Lal
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Deepak Lal wrote:Hi,
I need a clarification on the below.

1>

what does the above statament mean and how is synchronization internally carried on when synchronizedMap(K,V) is called.Please explain me in lehman terms...



There is no such method, of the Collections class, call synchronizedMap(), that takes two parameters. There is one that takes a map, and it basically returns a wrapper class. It will return a Map class, whose methods are synchronized, and whose implementation is to just call the map that was passed in.

Henry
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

2> What is StackOverflowError,when does it occur in a java program, how do you resolve it in java.?
Could you provide me steps to overcome StackOverflowError ??



This forum is for threading and synchronization (which is related to threading) questions only. Please post this question in a more appropriate forum.

Henry
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic