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
What is singleton class in java and how can we make a class singleton?
What does replaceall do in java?
What is mysql driver class name?
Explain the difference between static and dynamic binding in java?
What is bytecode verifier?
How to split a string in java?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What is return keyword in java?
Why is singleton not thread safe?
What is threaded programming and when is it used? : Java thread
What do you understand by looping in java? Explain the different types of loops.
What are the three parts of a lambda expression?
Can java program run without jre?
What modifiers are allowed for methods in an interface?
Can we access instance variables within static methods ?