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 [...]
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 [...]
Please fill in the following fields
* - Required
Your Name: *
Your E-Mail: *
Your Remarks:
Friend's Name: *
Friend's E-Mail: *