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 pass by reference and pass by value?
What is the tradeoff between using an unordered array versus an ordered array?
How do you do exponents in java?
Which access specifier can be used with class ?
Explain the Propertie sof class?
What is difference between equal and == in java?
What is the difference between notify and notifyall method?
What is illegal identifier in java?
Why is java called the platform independent programming language?
Can we use string in switch case in java?
Define interface in java?
Explain exception chaining in java?
Give few examples of final classes defined in Java API?
Can keyword be used as identifier?
What is meant by distributed application? Why are we using that in our application?