{"id":3705,"date":"2016-05-15T20:03:51","date_gmt":"2016-05-15T14:03:51","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/what-is-the-name-of-the-method-used-to-start-a-thread-execution\/"},"modified":"2016-05-15T20:03:51","modified_gmt":"2016-05-15T14:03:51","slug":"what-is-the-name-of-the-method-used-to-start-a-thread-execution","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/what-is-the-name-of-the-method-used-to-start-a-thread-execution\/","title":{"rendered":"What is the name of the method used to start a thread execution?"},"content":{"rendered":"","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[107],"subject":[16],"class_list":["post-3705","mcq","type-mcq","status-publish","hentry","topic-threads","subject-java-programming"],"mcq_note":"<strong>Option B 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> There is no <code>init()<\/code> method in the Thread class.\r\n\r\n<strong>Option C is wrong.<\/strong> The <code>run()<\/code> method of a thread is like the main() 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 D is wrong.<\/strong> The <strong>resume()<\/strong> method is deprecated. It resumes a suspended thread.","mcq_options":[{"right":"no","answer":"<code>init();<\/code>"},{"right":"yes","answer":"<code>start();<\/code>"},{"right":"no","answer":"<code>run();<\/code>"},{"right":"no","answer":"<code>resume();<\/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\/3705","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=3705"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=3705"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=3705"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=3705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}