can we create instance for interface in java?

Answer Posted / venkateswararao

No,we cant create an instance if an interface in java , but
we can create a reference of an interface and we can
assign the object of a class to that interface reference.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the functionability stubs and skeletons?

690


What is the new line character?

560


How do you sort a list in java?

582


Write a program in java to establish a connection between client and server?

511


What are the steps involved to write rmi based programs?

573






Is linked list a linear or non-linear data structure?

550


What are the new features in java 8? Explain

563


Is it possible to override the main method?

537


Can we declare an array without size in java?

524


What is compareto?

546


What are java packages? What is the significance of packages?

575


Describe the term diamond problem.

577


What are scalar data types?

528


What do you mean by of string::valueof expression in java 8?

546


how its run?

572