can you create interface instance ?
Answer Posted / rasmitha
No,But we can Create reference for interface.
For Example.
java.sql.Connection is an interface,But in the
Establishmentof the Database Connetion.
Connection con = DriverManager.getConnetion();
con is an ref Varieble that holds Connetion Object yar..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How will you reverse a link list without using recursion?
What are examples of modifiers?
Which sorting is best in java?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is a void in java?
Can we have any code between try and catch blocks?
What is one third plus one third as a fraction?
What is a finally block?
How do listeners work?
What is comparable and comparator interface? List their differences
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
How is hashcode calculated in java?
Is a copy constructor?
Where and how can you use a private constructor?
What will happen if static modifier is removed from the signature of the main method?