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
Explain the difference between arraylist and linkedlist in java?
Can we define static methods inside interface?
How do you sort a list in java?
When throws keyword is used?
What happens if main method is not static?
Difference between string, string builder, and string buffer?
What is the synonym of procedure?
What is the difference between Error, defect,fault, failure and mistake?
Explain the importance of join() method in thread class?
What is the purpose of using break in each case of switch statement?
What is broken and continue statement?
Can each java object keep track of all the threads that want to exclusively access it?
What are the different ways of implementing thread? Which one is more advantageous?
What is sortedmap interface?
Can a source file contain more than one class declaration?