In java Program, parameters which is defined as String in method declaration.But in method definition it is accessed as final String variable. Whether it'll lead to some issues (like security, memory problem)?
For Example:
Method Declaration
join(String a,String b);
Method definition
public void join(final String a,final String b)
{
Authenticator au = new Authenticator(){
public PasswordAuthentication getPasswordAuthentication(){
return new PasswordAuthentication(a,b)}
};
}
Please help for me and clarify my doubts. Thanks in advance
P.S. I;m accessing a and b as final variable because i've to use it in the inner class.