JAVA Interfaces and Abstract Classes
Which two of the following are legal declarations for abstract classes and interfaces?1. final abstract class Test {}2. public static interface Test {}3. final public class Test {}4. protected abstract class Test {}5. protected interface Test {}6. abstract public class Test {}