Example

public class ClassA {

public void method() {
char i;
int i;
}
}
Solution
In the example there two variables with the same name "i" even tough they are of different types.This should be avoided.

public class ClassA {

public void method() {
int i;
char a;
}
}