Home

What is the correct answer?

4

The methods wait() and noify() are defined in

A. java.lang.Thread

B. java.lang.Runnable

C. java.lang.Object

D. java.lang.ThreadGroup

Correct Answer :

C. java.lang.Object


Related Questions

Consider the following class definitions: class maths { student student1;… We would like to make a member of a class visible in all subclasses regardless… Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division… If m and n are int type variables, what will be the result of the expression'm… The name of a Java program file must match the name of the class with… Which of the following control expressions are valid for an if statement? Throwing an exception always causes program termination. A final class may not have any abstract method. Which of the following are the wrapper classes? Which javadoc tag is used to denote a comment for methods parameters? A string object can not be modified after it is created. To delete a file, we can use an instance of class file. A panel can not be added to another panel. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… All the bitwise operators have the same level of precedence in Java. Consider the following class definition.Class Student extends String{}What… Consider the following statements: int x = 10, y = 15; x = ((x < y)… The length of a string object 's1' can be obtained using the expression… The programmer must explicitly create the system .in and system .out objects. JdbcOdbcDriver is an object of Object class In RMI before running the client program we must start RMI Registry. A method declared as static can not access non-static class members. Which of the following classes are available in the java.lang package? What does the following line of code do?TextField text=new TextField(10); Any method in a supper class can be over ridden in its subclass. Servlet can have ___________ Members of a class specified as private are accessible only to the methods… JSP files creates ________________ Declaring a method synchronized guarantees that the deadlock cannot occur. When we implement an interface method, it should be declared as public.