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

Why is main purpose of XML?

5 Answers  


what is a non-repeatable read?

0 Answers  


Is “abc” a primitive value?

0 Answers  


whats is mean by jndi

4 Answers   SolutionNET,


difference between Abstract and Interface?

2 Answers   HCL, Infotech,


How do you download stubs from a Remote place?

1 Answers  


Which are the different segments of memory?

0 Answers  


Is 'synchronised' a modifier?

2 Answers   NIIT,


What is checkpoint? How to create checkpoints in our java projects?

1 Answers   ABC,


Why a client should be multithreading? Explain.

0 Answers  


How a component can be placed on Windows?

0 Answers   Wipro,


For which statements does it make sense to use a label?

0 Answers  


Categories