How can I securely wipe a confidential data in memory in java with guarantee it will not be 'optimized'?

Viewed 11827
String secret="foo";
WhatILookFor.securelyWipe(secret);

And I need to know that it will not be removed by java optimizer.

4 Answers
Related