Which two statements are true for any concrete class implementing the java lang runnable interface

Greenhorn

Posts: 5

Valentin Munteanu

Greenhorn

Posts: 5

Author & Gold Digger

Which two statements are true for any concrete class implementing the java lang runnable interface

Posts: 7617

Which two statements are true for any concrete class implementing the java lang runnable interface
Which two statements are true for any concrete class implementing the java lang runnable interface

Ranch Hand

Posts: 120

author

Which two statements are true for any concrete class implementing the java lang runnable interface

Posts: 9050

  • Which two statements are true for any concrete class implementing the java lang runnable interface

    (2) and (6). When a thread's run() method completes, the thread will die. The run() method must be declared public void and not take any arguments. (1) is incorrect because classes can never extend interfaces. (3) is incorrect because the run() method is typically not empty; if it were, the thread would do nothing. (4) is incorrect because the mandatory method is run(). (5) is incorrect because the class implements Runnable.

Exercise :: Declarations and Access Control - Pointing out the correct statements

View Answer Discuss in Forum Workspace Report

View Answer Discuss in Forum Workspace Report