πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
2 messages
2 total messages Started by Hernan Diaz R. Mon, 14 Jul 2003 17:32
Why Hashtable syncronized get() method?
#509
Author: Hernan Diaz R.
Date: Mon, 14 Jul 2003 17:32
5 lines
1012 bytes
Hi,

Someone know why Hashtable.get() method is syncronized?.

HernοΏ½n Diaz
Re: Why Hashtable syncronized get() method?
#510
Author: Shankar Unni
Date: Mon, 14 Jul 2003 21:12
9 lines
1563 bytes
> Someone know why Hashtable.get() method is syncronized?.

Because that's how it's always been. Hashtable is a 1.1-era class that's
fully synchronized for access, and was retrofitted to the Collection
interface for 1.2 and later.  Likewise for Vector.

Hash*Map* is the new JFC (1.2+) collection class that's unsynchronized
by default (and you can synchronize it by wrapping it using
Collections.synchronizedMap(map)).  Vector's replacement is ArrayList.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads