Q 1. You are working with threads where a deadlock occurs. Which of the following statements will hold true in this thread deadlocking scenario?
Q 2. You have a requirement of using a two-dimensional array in the Java application you are working on. Which of the following code will you use to create the two-dimensional array of integers correctly?