Home

What is the correct answer?

4

Declaring a method synchronized guarantees that the deadlock cannot occur.

A. True

B. False

Correct Answer :

A. True


Related Questions

JdbcOdbcDriver is an object of Object class The name of a Java program file must match the name of the class with… Every call to wait has a corresponding call to notify that will eventually… It is perfectly legal to assign a subclass object to a supper class reference. Connection, Statement are interfaces and ResultSet is a class. An EJB is a server-side component that encapsulates the business logic… Any method in a supper class can be over ridden in its subclass. A final class may not have any abstract method. When we invoke repaint () for a Component, the AWT invokes the method: The methods wait() and noify() are defined in Every method of a final in class is implicitly final. Which of the following control expressions are valid for an if statement? Java always provides a default constructor to a class. Session bean If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… When the string objects are compared with ==, the result is true If the… What does the following line of code do?TextField text=new TextField(10); Which key word can protect a class in package from accessibility by the… Which of the following are the wrapper classes? JSP files creates ________________ executeUpdate automatically updates data because___________ Give file is a file object, which of the following are legal statements… The length of a string object 's1' can be obtained using the expression… Java is fully object oriented programme. Consider the following class definition.Class Student extends String{}What… We can over load methods with differences only in their return type. The use of protected keyword to a member in a class will restrict its… DataInput is A thread can make second thread ineligible for execution by calling the… To delete a file, we can use an instance of class file.