can you create interface instance ?
Answer Posted / arvind panwar
No, we can't create an instance of an interface but
reference variable can hold reference to object of its sub
class.
| Is This Answer Correct ? | 46 Yes | 13 No |
Post New Answer View All Answers
In a class implementing an interface, can we change the value of any variable defined in the interface?
Can we declare a class as abstract without having any abstract method?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
How infinite loop is declared?
What is a local class in java?
What is integer size in java?
How do you declare a destructor in java?
What is the difference between post and put?
Can we declare a constructor as final?
What is difference between ++ I and I ++ in java?
What is purpose of applet programming?
What is string intern in java?
Can we execute java program without main method?
What is generic class?
What an i/o filter?