can you create interface instance ?
Answer Posted / sushma
hi nishant,
whatever the explanation u have given is exactly right. we cant create an instance for interface. the instance created is for annonymous inner class and not of interface Test.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between path and classpath variables?
What is difference between path and classpath?
What does it mean to flush a file?
How are multiple inheritances done in Java?
What is the difference between jfc & wfc?
Which programming language is most secure?
make a method which any number and any type of argument and print sum of that arguments.....
What is the disadvantage of java?
What is the use of arraylist in java?
What is prime number in java?
What is module in oop?
What do you mean by platform independence? What is an interface?
How do you convert an int to a double in java?
Difference between default and protected access specifiers?
How do you join strings in java?