{"id":3696,"date":"2016-05-15T22:50:23","date_gmt":"2016-05-15T16:50:23","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/which-method-registers-a-thread-in-a-thread-scheduler\/"},"modified":"2016-05-15T22:50:23","modified_gmt":"2016-05-15T16:50:23","slug":"which-method-registers-a-thread-in-a-thread-scheduler","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-method-registers-a-thread-in-a-thread-scheduler\/","title":{"rendered":"Which method registers a thread in a thread scheduler?"},"content":{"rendered":"","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[107],"subject":[16],"education_level":[],"class_list":["post-3696","mcq","type-mcq","status-publish","hentry","topic-threads","subject-java-programming"],"mcq_note":"<strong>Option C is correct.<\/strong> The <code>start()<\/code> method causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.\r\n\r\n<strong>Option A is wrong.<\/strong> The <code>run()<\/code> method of a thread is like the <code>main()<\/code> method to an application. Starting the thread causes the object's run method to be called in that separately executing thread.\r\n\r\n<strong>Option B is wrong.<\/strong> There is no <code>construct()<\/code> method in the <strong>Thread<\/strong> class.\r\n\r\n<strong>Option D is wrong.<\/strong> There is no <code>register()<\/code> method in the <strong>Thread<\/strong> class.","mcq_options":[{"right":"no","answer":"<code>run();<\/code>"},{"right":"no","answer":"<code>construct();<\/code>"},{"right":"yes","answer":"<code>start();<\/code>"},{"right":"no","answer":"<code>register();<\/code>"}],"multi_answers":"no","subject_terms":[{"id":16,"title":"Java Programming","slug":"java-programming"}],"topic_terms":[{"id":107,"title":"Threads","slug":"threads"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/3696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq"}],"about":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/types\/mcq"}],"author":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/comments?post=3696"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=3696"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=3696"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=3696"},{"taxonomy":"education_level","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/education_level?post=3696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}