a review of the java.util package

12
Amit Ranjan Tripathy A Review of the java.util Package [1]

Upload: likan-patra

Post on 05-Dec-2014

1.536 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: A review of the java.util package

Amit Ranjan Tripathy

A Review of the java.util Package

[1]

Page 2: A review of the java.util package

Amit Ranjan Tripathy

The ad hoc approach lacked an unifying theme

The Collections framework

Collections Maps

[2]

Introduction

Page 3: A review of the java.util package

Amit Ranjan Tripathy[3]

The Collection Interface

Page 4: A review of the java.util package

Amit Ranjan Tripathy

The Collection Classes

[4]

Page 5: A review of the java.util package

Amit Ranjan Tripathy

The Map Interface

[5]

Page 6: A review of the java.util package

Amit Ranjan Tripathy

The Map Classes

[6]

Page 7: A review of the java.util package

Amit Ranjan Tripathy[7]

• Reengineered to support Collections

• Synchronized : The only Advantage

• Enumeration

Calcified as obsolete

Superceded by Iterator

Page 8: A review of the java.util package

Amit Ranjan Tripathy

The Legacy Classes

[8]

Page 9: A review of the java.util package

Amit Ranjan Tripathy

Working of Hash Tables

[9]

Page 10: A review of the java.util package

Amit Ranjan Tripathy

Other Utility Classes

[10]

• StringTokenizer : Lexical analysis made easy

• BitSet

• Date

• Random

• Observable

Update( )

notifyObservers( )

Page 11: A review of the java.util package

Amit Ranjan Tripathy

Conclusion

[11]

• The Collections framework

Unified theme for “data engines”

Reengineering of the base classes

Maps introduced

• Broad domain of applications

Page 12: A review of the java.util package

Amit Ranjan Tripathy

Thank You!!!

[12]