can you create interface instance ?
Answer Posted / uday
Hi Deepesh, uday is back again
Hey just see the question . can you create interface
instance?
just say the answer Yes or No?
my answer is Yes
how is it possible? Already i gave the example.I know that
this is anonymous inner class concept. But i don't want to
exceed this concept for too complex. that's why i did it in
this manner.Any How i thanks to all of you for more inputs.
but u can create the instance for interface. how can we
check an instance is,using instance of operator only. here
it proved hence the affrimative ans is right. i am not
plmbbing your knowledge it's just a kind of inquiry. Thanks
FYI huh!!!!
| Is This Answer Correct ? | 1 Yes | 12 No |
Post New Answer View All Answers
What is the use of list in java?
Is map ordered in java?
Why is static used?
Can we declare a class as abstract without having any abstract method?
What are the restrictions imposed on method overriding?
What is the definition of tree ?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Which of the following is not an isolation level in the JDBC
How do you start a new line in java?
What is array initialization in java?
If a method is declared as protected, where may the method be accessed in java programming?
Can we inherit a class with private constructor?
Why super is first line in java?
how are methods defined?
Can singleton class be inherited in java?