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
How to restrict a member of a class from inheriting by its sub classes?
What is the difference between member variables initialization and assignment in a constructor?
Can we have any code between try and catch blocks?
Why multiple inheritance is not supported by java?
How many bits is a double?
What is anagram in java?
I want to persist data of objects for later use. What is the best approach to do so?
What are the different approaches to implement a function to generate a random number?
Which method must be implemented by all threads?
What is the purpose of lambda expressions?
Explain creating threads by implementing runnable class?
What are thread groups?
What are the different types of inheritance in java?
What is output buffer?
What is use of static method?