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
Is static a singleton?
What is the difference between math floor and math round?
What is a generic type?
What is mean by encoding?
explain different ways of using thread? : Java thread
Program to Find the second largest element in an array.
What are the different data types in java?
How many types of interfaces are there?
what is instanceof operator used in java?
What is meant by design patterns?
What are the advantages of inner classes?
Why are global variables used?
Define locale.
What happens if an exception is throws from an object's destructor?
What is arraylist e?