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
What is a singleton class? Give a practical example of its usage.
Can we make constructors static?
What is the length of a string?
Does substring create a new object?
Difference between string, stringbuffer and stringbuilder?
Name few "optional" classes introduced with java 8 ?
what are different ways in which a thread can enter the waiting state? : Java thread
Give me example of derived data types.
When would you use a static class?
What are generic methods?
What is string substring?
What are scriptlets?
Is string is a keyword in java?
What is the full meaning of java?
What is the size of int?