What is interface and its use?

Answer Posted / yugendar siddipet

Interface is nothing but a pure abstract class which
contains all abstract methods.a clas can implement this
interface and use accordingly.this is how java supports
multiple inheritance.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

583


What is static class

594


Does constructor creates the object ?

562


What is the difference between final, finally and finalize() in java?

493


Can we overload destructor in java?

516






what is bmg file and how to create that files?what will it contailn?

1845


What is protected access modifier?

544


Why are there no global variables in java?

560


Does java return by reference?

514


What is the finalize method do?

580


Can we override the overloaded method?

538


Can you override static methods?

485


Why heap memory is called heap?

565


How do you start a new line in java?

496


What are different types of classloaders?

563