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 are java methods?

574


what is encapsulation in java? Explain

662


How do you do math powers in java?

575


What are the application of stack?

500


What does the “static” keyword mean? Can you override private or static method in java?

629






What is the difference between equals() and?

586


What is the hashcode () and equals () used for?

531


Can we make main() thread as daemon?

578


How to check if a list is sorted in java?

587


Why use string handling in Java?

580


What is JFC?

707


How are variables stored in memory?

577


What is arraylist class in java?

511


What is meant by memory leak?

538


What is scope & storage allocation of global and extern variables? Explain with an example

579