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
When will you define a method as static in Java?
What does super keyword do?
What are JVM.JRE, J2EE, JNI?
What is the static field modifier?
How can you read content from file in java?
What is a stringbuffer?
Explain the concept of hashtables?
What is the difference between preparedstatement and statement in java?
What is the importance of hashcode() and equals() methods?
Can we catch more than one exception in a single catch block?
What is the difference between a factory and abstract factory pattern?
What are java annotations?
What is variable explain with example?
Can an interface be defined inside a class?
What is the difference between and ?