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 runtime polymorphism or dynamic method dispatch?

525


How many bytes is a unicode character?

509


What are the characteristics of Final,Finally and Finalize keywords.

705


What is concurrent hashmap and its features?

527


Can a constructor be private and how are this() and super() method used with constructor?

530






Can a final variable be null?

550


From the two, which would be easier to write: synchronization code for ten threads or two threads?

618


What is the properties class in java programming?

548


What is the purpose of a default constructor?

581


How many types of constructors are used in java?

542


What is the program compilation process?

587


What is string in java?

565


What is difference between array and vector?

538


What are the benefits of immutable objects?

540


How does java enable high performance?

694