Which of the following statements is true about JDBC transactions?
A. JDBC transactions are used to store images
B. JDBC transactions are not supported in Java
C. JDBC transactions are used for creating JavaBeans
D. JDBC transactions are used to ensure data consistency in a database
Answer: Option D
A. A reusable software component that follows specific conventions
B. A type of coffee bean
C. A Java class used for file I/O
D. A Java keyword
Which file extension is commonly used for JavaBean files?
A. `.bean`
B. `.jar`
C. `.class`
D. `.java`
In JavaBeans, what is the purpose of the getter method?
A. To set the value of a property
B. To create a new instance of a bean
C. To retrieve the value of a property
D. To execute a SQL query
What is the role of the `javabeans.Introspector` class in JavaBeans?
A. It represents a JavaBean interface
B. It allows you to examine the properties, events, and methods of a bean
C. It handles database connections
D. None of These

Join The Discussion