Answer Posted / anil pusuluri
One can't instantiate an interface. One can get a reference
to an interface.
Let's say Class A implements interface iA then we can't
instantiate IA
like IA a = new IA() -- this gives compilation error.
but we can get the referance to interface as below
IA a = new A()
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What's the access scope of protected access specifier?
What are filterstreams?
What is return in java?
Are there structures in java?
Write a code to create a trigger to call a stored procedure
What is the null?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
Can we call the constructor of a class more than once for an object?
Explain exception chaining in java?
explain autoboxing in java?
How do you initialize an arraylist in java?
Describe the process as to how substring() methodology mechanisms in java.
Are true and false keywords?
What is a bufferedreader?
what is thread? : Java thread