How To Delete Property From java.util.Properties

How To Delete Property From java.util.Properties

Note: This article will be emailed to your friend.

This isn’t a trick question. For a long time you couldn’t delete a property from java.util.Properties class. In the recent versions too Java doesn’t reveal that it has added the functionality. However as java.util.Properties now extends Hashtable, you can delete a property by:

Properties.remove(key);
So effectively Properties is a persistent Hashtable which is limited to String key [...]

Read the rest of this article (67 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro