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...


Why use a datasource when you can directly specify a
connection details? (in a J2EE application)



Why use a datasource when you can directly specify a connection details? (in a J2EE application)..

Answer / anand

Because, it would be really difficult to specify the connection details in every method that access the database. Instead, if we create a data source, it can be used to connect to the database in every method we want.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

What is the infobus?

0 Answers  


To make an object to begin executing as a separate thread, what method is used?

2 Answers  


What is the map interface?

0 Answers  


Name three subclasses of the component class?

0 Answers  


suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?

7 Answers  


How to get an image from db2 database plz help as soon as possible

1 Answers  


what is handle?

0 Answers  


What is the use of Class.forName

20 Answers   HCL,


Explain lazy activation?

1 Answers   HCL,


diff mvc1 and mvc2 wahts is mean by servlet chaining?

1 Answers   SolutionNET,


What is jboss?

0 Answers  


Explain RMI Architecture?

0 Answers  


Categories