can you create interface instance ?
Answer Posted / rushi shah
The above code given by Udaykiran gives the following error even before it is compiled:
Can not instantiate the type 'Test' type.
Which means that we can not create any object of interface.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How many return statement are allowed in a function?
What will happen if static modifier is removed from the signature of the main method?
Explain about core java?
Can main() method in java can return any data?
What is consumer interface?
What do you mean by order of precedence and associativity?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is variable and its types?
What is concurrent hashmap and its features?
What is java console application?
What does it mean that strings are immutable?
What is the difference between import java.util.date and java .util?
What are different types of classloaders?
What are internal and external variables?