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

If your ui seems to freeze periodically, what might be a likely reason?

0 Answers  


what is stringBuffer and StringBuilder?

3 Answers  


Explain about local interfaces.

0 Answers  


Is a class a subclass of itself?

0 Answers  


what are design patterns in java?give with example?

2 Answers   HCL, iGate,


Will the general public have access to the infobus apis?

0 Answers  


What invokes a thread?s run() method?

2 Answers  


how i secure my site with the https protocol.what are the steps?

0 Answers  


is servlet,struts are threadsafe or not.please telme correct answer

1 Answers   Microsoft,


Are enterprise beans allowed to use thread.sleep()?

0 Answers  


What is the form of storage space in java?

0 Answers  


What is mdb and what is the special feature of that?

0 Answers  


Categories