What is the correct answer?


When we implement the Runnable interface, we must define the method

A. start()

B. init()

C. runnable()

D. run()

Correct Answer :

D. run()

Related Questions

Which exception is thrown by the read() method of InputStream class? It is perfectly legal to refer to any instance variable inside of a static… When we implement an interface method, it should be declared as public. Objects are passed to a method by use of call-by-reference. The import statement is always the first no comment statement in a Java… We can over load methods with differences only in their return type. A static class method can be invoked by simply using the name of the method… Which of the following are not keywords? Frames and applets cannot be used together in the same program. JdbcOdbcDriver is an object of Object class Every call to wait has a corresponding call to notify that will eventually… In RMI we invoke client method from remote server What is java -g used for? Which of the following will produce a value of 10 if x = 9.7? Which of the following classes are available in the java.lang package? Which of the following are the wrapper classes? To delete a file, we can use an instance of class file. When X is a positive number the operations x>> 2 and x>>>2… A package is a collection of In the code below, what data types the variable x can have? Which of the following statements are true? EJBs can be of the following type(s)None of the above DataInput is An individual array element that is passed to a method and modified in… Submit button always fires doPost(...) It is an error to have a method with the same signature in both the super… Which of the following methods belong to the String class? It is an error if a class with one or more abstract methods is not explicitly… Which of the following control expressions are valid for an if statement? Which of the following string can be used as mode string for creating…