How a class can implement an interface?

Answers were Sorted based on User's Feedback



How a class can implement an interface?..

Answer / debapriya patra

By using the "implements" clause

Is This Answer Correct ?    7 Yes 1 No

How a class can implement an interface?..

Answer / ravikiran

with implements keyword

Is This Answer Correct ?    4 Yes 0 No

How a class can implement an interface?..

Answer / 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

How a class can implement an interface?..

Answer / 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

How a class can implement an interface?..

Answer / mayuri wankhade

without using implements clause it is also possible to use
interface by creating object of an interface in the class
containing main method like :

nameOfInterface Obj = new nameOfInterface()
{
implement a method declared in an interface
};
Obj.MethodName();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is the use/perpose of having a method antive?

2 Answers  


What modifiers are used with an inner class which is a member of an outerclass?

1 Answers  


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

0 Answers  


which method is used to know the status of the Thread?

9 Answers   Honeywell,


What is oops in java?

0 Answers  






What is java class writing rules?

1 Answers   Oracle,


can we declare private class in java file?

13 Answers  


Write POJO class as a key to hashmap???

2 Answers  


What is stringreader?

0 Answers  


Write java program to reverse string without using api?

0 Answers  


What are measurable parameters?

0 Answers  


What are the topics in core java?

0 Answers  


Categories