Is java 1.4 pure object oriented concept?

Recommended Answers

All 3 Replies

Yes, what a silly question

OO - yes; pure OO - no.
Java is mostly OO, but incorporates non-OO "primitive" types such as int, boolean etc which are not Objects. For "pure" OO you need to go to something like Smalltalk, where everything is an object.

have recently had a dilemma whether to use Collections.synchronizedMap(new HashMap) or Hashtable, and a simple benchmark showed that that Hashtable is around 10 times slower. So I decided to use HashMap wrapped as a synchronizedMap. Was this just a lucky situation or the HashMap is so much effiecient even when externally synchronized?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.