This is related to Java string content pool. In one of my programs, I am decrypting the password for the database and storing it in the string. I have heard that Java strings will be stored continuously in the pool and they will not be restarted VM restart or class loader, which is loaded string quatts.
If this is the case then my password will be stored in the string pool. I am very concerned about this issue.
Please suggest this,
Regards, Sunny.
itemprop = "text">
There are many different problems playing here. First, the term "continuous pool" And for numerical writing, class files for a very specific part of the class files or in the JVM is for data structures generated from this part of the class files. The password will not be stored until it is a part of class files.
However, some string objects are actually stored and shared throughout the program via string infanture. Any string is automatically interned, as there is any string that you apply the interface () method. My knowledge is the best way, however, no other wire is stored in this way, unless you mean yourself to keep your password for yourself, I do not think you should worry about it. is required.
Be aware that if you do not want to have a memory password, you may need to be careful about garbage collection because a string that is no longer referred to is still in memory Could. Similarly, if you use certain string methods such as substandard, which represents shared support between stars, then you can keep the full password string after completing it.
If you're worried about it, then other Java code is able to see the old password that is either interned or still in memory, however, you do not need to worry. There is no way to resume or view elements of an internal string pool, or open a string to see its backing array.
Comments
Post a Comment