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 are predefined functions?

0 Answers  


diff b/w sleep(1000) and wait(1000)?

4 Answers   Huawei,


class a extends b { } class b extends a { } why java doesn't support cyclic pls explain me with example

3 Answers   Wipro,


Can you start a thread twice in Java?

0 Answers  


How do you achieve singleton?

0 Answers  






What do you mean by global variable?

0 Answers  


Explain the JDB in depth & command line.

0 Answers  


Define array. Tell me about 2-D array.

0 Answers   Agilent,


What is meant by 'Class access modifiers'?

0 Answers   HCL,


garbate collector(GC)?

4 Answers  


What are 5 boolean operators?

0 Answers  


how we can make a read-only class in java?

0 Answers  


Categories