Multiple Choice Question

Quiz Guidelines

 

QID: 
46
Validated against: 
java7, java8
Question: 

Which of the followinf interface declarations are valid.

A.

interface Inter1 {
    
    void myMethod();
    
    class inner {}
}

B.

interface Inter2 {
    
    void myMethod();
    
    static class inner {}
}

C.

interface Inter3 {
    
    void myMethod();
    
    public static class inner {}
}

D.

interface Inter4 {
    
    void myMethod();
    
    public static final class inner {}
}

E.

interface Inter5 {
    
    void myMethod();
    
    public static abstract class inner {}
}

F.

interface Inter6 {
    
    void myMethod();
    
    protected static abstract class inner {}
}

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!