Answer Posted / 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 View All Answers
Can a static block throw exception?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
Can a class be declared as static?
What is struts in java?
What are keywords give examples?
What is the purpose of format function?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
Can arraylist hold different types java?
What do you mean by thread safe?
How is garbage collection controlled?
What is preparedstatement in java?
Can variables be used in java without initialization?
What is a stringbuffer?
What do heavy weight components mean in java programming?
Does sprintf add a null terminator?