Can we instantiate Interfaces?

Answer Posted / divya

You can only create a reference of an interface but cannot
instantiate.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give reasons supporting that string is immutable.

500


What does three dots mean in java?

651


What is empty string literal in java?

564


Can we write method inside a method in java?

526


What is meant by singleton class?

602






What are the advantages of exception handling in java?

650


What is string data?

558


What is indexof?

547


What is polymorphism in java? What are the kinds of polymorphism?

582


How do you identify independent and dependent variables?

507


What are parameters in a method?

586


Can we have try block without catch block?

588


Why do we need singleton class?

551


What does string mean in java?

630


How do you sort an array in java?

543