can you create interface instance ?
Answer Posted / swati
we can't create instance of an interface..
but we can create reference of interface, which can refer
to upcoming object of the class who implements that
interface..
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is ternary operator?
In a container there are 5 components. I want to display all the component names, how will you do that?
What is string pool in java?
What is the longest unicode character?
What is the difference between JVM and JRE?
Why heap memory is called heap?
Which one will take more memory: an int or integer?
Define how does a try statement determine which catch clause should be used to handle an exception?
What does the append?
what is meant by Garbage collection?
What are the advantages and disadvantages of reference counting in garbage collection?
What are the features of java?
What is the difference between static and non-static variables in java programming?
What is the use of using enum to declare a constant?