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
What is an object in java and how is it created?
What one should take care of, while serializing the object?
What is the independent variable in an experiment?
What are implicit objects in java?
What is sortedmap in java?
Why are the destructors for base class and derived class called in reverse order when the program exits
What are the types of methodology?
Which is better singleton or static class?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Difference between operator overloading and function overloading
How to perform selection sort in java?
Explain about strings in java?
Write a method to check if input string is palindrome?
What is an inner class in java?
What's the difference between comparison done by equals method and == operator?