what is the use of datasource in core java?
Answers were Sorted based on User's Feedback
Answer / lark
A DataSource encapsulates state information for a database
such as driver class name, url, username and password. This
info is then handed out via the getConnection() method to
its callers.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / mohideen
DataSource is used to acquiting the database connection of
open and close in the connection pools.
DataSource.getconnection() &
DataSource.close().
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / developer
jada bakchodi theek ni h yaha per..theek s pado fir jawab
diya kero..All d best wse correct anser:-
It help us in maintaing connection pool and connection
management.
| Is This Answer Correct ? | 1 Yes | 0 No |
According to java operator precedence, which operator is considered to be with highest precedence?
How many types of the indexof method are there for strings?
How do you read and print a string in java?
Can an interface be defined inside a class?
What is the use of static keyword in "public static void main()"
10 Answers College School Exams Tests, Infosys, Six Dee Telecom,
What is anti pattern in cyber security?
What are access specifiers available in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is the order of arraylist in java?
Explain Public static void main?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Explain the difference between runnable and callable interface in java?