Posts

Showing posts with the label 22517

22517 advance java programming (AJP) MCQ with Answers

Image
  1. Which of the following contains both date and time? a. java.io.date b. java.sql.date c. java.util.date d. java.util.datetime Answer: d. java.util.datetime 2. Which of the following is advantage of using JDBC connection pool? a. slow performance b. using more memory c. using less memory d. better performance Answer: d. better performance 3. Which of the following is advantage of using PreparedStatement in Java? a. slow performance b. encourages sql injection c. prevents sql injection d. more memory usage Answer: c. prevents sql injection 4. Which one of the following contains date information? a. java.sql.timestamp b. java.sql.time c. java.io.time d. java.io.timestamp Answer: a. java.sql.timestamp 5. What does setAutoCommit(false) do? a. commits transweraction after each query b. explicitly commits transweraction c. does not commit transweraction automatically after each query d. never commits transweracti...