Hardcoding sensitive information, such as passwords, server IP addresses and encryption keys, can expose the information to adversariesattackers. Anyone who has access to the class files can decompile them and consequently can discover the sensitive information. Consequently, hardcoding sensitive information is forbidden.
...