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
What are the restrictions imposed on method overriding?
What is the difference between state-based unit testing and interaction-based unit testing?
Is java 1.7 the same as java 7?
Why java doesn’t support multiple inheritances?
What are new features introduced with java 8 ?
What is java util list?
What is strings in java?
What are different data types?
Which is better 64 bit or 32 bit?
What are the actions that can occur when a thread enters blocked state?
Difference between this() and super() ?
How do you trim a space in java?
What is run time allocation?
How to solve the problem of generating the unique hash keys with hash function?
What is hotjava?