1.
Which two actions can be used in registering a JDBC 3.0 driver?
2.
Given the code fragment: What change should you make to apply good coding practices to this fragment?
3.
Which two statements are true about RowSet subinterfaces?
4.
Given: From what threading problem does the program suffer?
5.
Given the interface: Public interface Idgenerator { int getNextId(); } Which class implements IdGenerator in a thread-safe manner, so that no threads can get a duplicate id value current access?
6.
Given the code fragment: What is the result?
7.
Given: ConcurrentMap PartList = new ConcurrentMap<>(); Which fragment puts a key/value pair in partList without the responsibility of overwriting an existing key?
8.
Give: What is the likely result?
9.
Given: import java.util.concurrent.atomic.AtomicInteger; public class AtomicCounter { private AtomicInteger c = new AtomicInteger(0); public void increment() { // insert code here } } Which line of code, inserted inside the increment () method, will increment the value of c?
10.
Given the following incorrect program: Which two changes make the program work correctly?