Name:_Covers Chs 29-31Sample ExamMultiple Choice Questions Only for This TestPart I: Questions: (1 pts each)1 You should always invoke the unlock method in the finally clause.A. true B. false 2 Given the following code, which set of code can be used to replace the comment so that the program displays time to the console every second?import java.applet.*;import java.util.*;public class Test extends Applet implements Runnable public void init() T