Is this valid in java ? Can we instantiate interface in java?
Answer / Ranjana Singh
No, it is not possible to create an instance of an interface in Java. Interfaces represent a contract or set of methods that a class implementing the interface must provide. An interface itself cannot be instantiated.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can a class with private constructor be extended?
Which is a valid identifier?
What are heterogeneous objects?
What are unchecked exceptions in java?
What is regex used for?
Can a class have more than one object?
Can you make a constructor final in Java?
1 Answers SwanSoft Technologies,
Why is serialization required?
How do you convert boolean to boolean?
Which is faster set or list in java?
How do you add an element to an arraylist in java?
Define Wrapper Classes in Java.