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 to add menushortcut to menu item?
what are synchronized methods and synchronized statements? : Java thread
What does business logic mean?
how can you catch multiple exceptions in java?
How to display names of all components in a Container?
What is indexof in java?
What is the difference between Java and C++?
What is jpa specification?
What are peerless components?
Java Compiler is stored in JDK, JRE or JVM?
What is a void method java?
Define nashorn in java8.
Does java map allow duplicates?
What is the requirement of thread in java?
What do you understand by garbage collection in Java? Can it be forced to run?