Preparedstatements are precompiled statements. It is mainly used to speed up the process of inserting/updating/deleting especially when there is a bulk processing.
2. What is callable statement? Tell me the way to get the callable statement?
2. What is callable statement? Tell me the way to get the callable statement?
Callablestatements are used to invoke the stored procedures. You can obtain the callablestatement from Connection using the following methods prepareCall(String sql) prepareCall(String sql, int resultSetType, int resultSetConcurrency)
3. In a statement, I am executing a batch. What is the result of the execution?
3. In a statement, I am executing a batch. What is the result of the execution?
It returns the int array. The array contains the affected row count in the corresponding index of the SQL.
4. Can a abstract method have the static qualifier?
4. Can a abstract method have the static qualifier?
No
5.. What are the different types of qualifier and what is the default qualifier?
5.. What are the different types of qualifier and what is the default qualifier?
public, protected, private, package (default)
6. What is the super class of Hashtable?
6. What is the super class of Hashtable?
Dictionary