How a class can implement an interface?

Answer Posted / asrinivas rao

In java a class can implement interface using "implemnts"
keyword.the methods defined in the interface need to be
implemented in the class which implments the respective
interface,otherwise the class becomes has an Abstract class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why set is used in java?

560


What is a lightweight component?

580


Which number is denoted by leading 0x or 0x in java?

551


What is thread synchronization in java?

475


What are the different ways of implementing thread? Which one is more advantageous?

522






What is the difference between the prefix and postfix forms of the ++ operator?

548


Which object oriented concept is achieved by using overloading and overriding?

542


Explain about field hiding in java?

519


Explain the importance of thread scheduler in java?

588


What happens if we don’t override run method ?

558


What is the default value of byte datatype in java?

470


What does substring mean?

499


What does a boolean method return?

621


List the interfaces which extends collection interface?

525


What is the nested interface?

589