Is this valid in java ? Can we instantiate interface in java?



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

Post New Answer

More Core Java Interview Questions

Can a class with private constructor be extended?

1 Answers  


Which is a valid identifier?

1 Answers  


What are heterogeneous objects?

1 Answers  


What are unchecked exceptions in java?

1 Answers  


What is regex used for?

1 Answers  


Can a class have more than one object?

1 Answers  


Can you make a constructor final in Java?

1 Answers   SwanSoft Technologies,


Why is serialization required?

1 Answers  


How do you convert boolean to boolean?

1 Answers  


Which is faster set or list in java?

1 Answers  


How do you add an element to an arraylist in java?

1 Answers  


Define Wrapper Classes in Java.

1 Answers  


Categories