can we create a instance for intwerface?

Answer Posted / uma

no.Interface is similar to class but they lack instance
variable, their methods are declared with out any body.
Interfaces are designed to support dynamic method
resolution at run time. All methods in interface are
implicitly
abstract, even if the abstract modifier is omitted.
Interface methods have no implementation;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between Heap and Stack Memory?

782


What is preparedstatement in java?

804


Why Java doesn’t support multiple inheritance?

842


What are the different types of multitasking?

876


Should a main method be compulsorily declared in all java classes?

834


Which sort is best in java?

759


What is a java developer salary?

763


How will you load a specific locale?

762


what is optional in java 8?

853


What is the history of java?

771


What is the difference between @before and @beforeclass annotation?

762


What is meant by bytecode?

784


Can this keyword be used to refer static members?

819


What is printwriter in java?

747


What is hash table in java?

703