How a class can implement an interface?

Answer Posted / ranganathkini

A class can implement an interface by using the "implements"
clause followed by a list of interface names that it
implements. Then the class needs to implement the
interface's methods within its class body.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a line break?

569


Is math an abstract class in java?

523


what is the purpose of "virtual"?

558


What is the current version of java?

525


Why is java architectural neutral?

605






Explain method local inner classes ?

577


Is set ordered?

527


How do you print array in java?

545


What is jvm? How its run?

643


What are the two ways in which thread can be created?

581


Distinguish between a predicate and a function?

556


What is a singleton factory?

498


Can we create constructor in abstract class ?

566


What advantage do java's layout managers provide over traditional windowing systems?

533


What is passing by reference in java?

525