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 |
what is disadvantage of thread?
What are the states associated in the thread?
does j2ee means advanced java
Write a java program to find out the sum of harmonic series : 1 + ½ + 1/3 + ……… up to nth term , for any value of n.
Why threads will block on I/O?
What method MUST be implemented by all threads?
What is UniCastRemoteObject and what is its use in RMI?
a US company has filed my H1B visa ,, and i got selected in random number process.I wanna ask Could they ask regarding my languages(java,c++) or there will b just general questions?? And wat kind of questions will they ask in embassy interview??
What is the use of Class.forName
What is in-memory replication?
What method is used to create the daemon thread?
If we opened windows notepad 4 times, does it starts 4 processes or 4 threads?