Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How will you reverse a link list without using recursion?

1029


What are examples of modifiers?

1108


Which sorting is best in java?

988


I want to re-reach and use an object once it has been garbage collected. How it's possible?

1015


What is a void in java?

1154


Can we have any code between try and catch blocks?

982


What is one third plus one third as a fraction?

922


What is a finally block?

971


How do listeners work?

1026


What is comparable and comparator interface? List their differences

1091


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1234


How is hashcode calculated in java?

1020


Is a copy constructor?

1048


Where and how can you use a private constructor?

981


What will happen if static modifier is removed from the signature of the main method?

955