Given this code fragment: Assume that the SQL query returns records. What is the result? A. Compilation fails. B. The program prints Error C. An exception is thrown at runtime D. The statement at line 16 execute

Given: Which pair’s statements should you insert at lines ** and lines *** (respectively) to acquire and release the most appropriate lock? A. rwlock.readLock().acquire(); rwlock.readLock().release(); B. rwlock.readLock().lock(); rwlock.readLock().unlock(); C. rwlock.getLock().acquire(); rwlock.getLock().release(); D. rwlock.getLock().lock(); rwlock.getLock().Unlock(); E. relock.WriteLock().acquire(); rwlock.writeLock().release(); F. rwlock.writeLock().lock(); rwlock.WriteLock().unlock();

Given: Which pair’s statements should you insert at line ** and line *** (respectively) to acquire and release the most appropriate lock? A. rwlock.readLock().acquire(); rwlock.readLock().release(); B. rwlock.readLock().lock(); rwlock.readLock().unlock(); C. rwlock.getLock().acquire(); rwlock.getLock().release(); D. rwlock.getLock().lock(); rwlock.getLock().Unlock(); E. rwlock.WriteLock().acquire(); rwlock.writeLock().release(); F. rwlock.writeLock().lock(); rwlock.WriteLock().unlock();