Let me do some quess work.
1) If both interface A and B have the same contents and their only difference is in their names, it means you don't need two two interfaces. If you really need two Java data types, you may have interface A hold all the methods, and interface not to contain any methods. (This is the co-called Marker Pattern).
2) If Interfaces A and B share some methods but B has more methods, you may have B extend A.
public interface A{
//some methods
}
public interface B extend A{
//some NEW methods
}
public class MyClass implements B {
//implement all the methods in A nd B
//Introduce new methods
}
In any case, I think it is agaist to the business rule to have two interfaces who have the same contents.
1) If both interface A and B have the same contents and their only difference is in their names, it means you don't need two two interfaces. If you really need two Java data types, you may have interface A hold all the methods, and interface not to contain any methods. (This is the co-called Marker Pattern).
2) If Interfaces A and B share some methods but B has more methods, you may have B extend A.
public interface A{
//some methods
}
public interface B extend A{
//some NEW methods
}
public class MyClass implements B {
//implement all the methods in A nd B
//Introduce new methods
}
In any case, I think it is agaist to the business rule to have two interfaces who have the same contents.