{"id":3697,"date":"2016-05-15T22:46:36","date_gmt":"2016-05-15T16:46:36","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/mcq\/which-will-contain-the-body-of-the-thread\/"},"modified":"2016-05-15T22:46:36","modified_gmt":"2016-05-15T16:46:36","slug":"which-will-contain-the-body-of-the-thread","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-will-contain-the-body-of-the-thread\/","title":{"rendered":"Which will contain the body of the thread?"},"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-3697","mcq","type-mcq","status-publish","hentry","topic-threads","subject-java-programming"],"mcq_note":"<strong>Option A is Correct.<\/strong> The <code>run()<\/code> method to 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> 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 C is wrong.<\/strong> The <code>stop()<\/code> method is deprecated. It forces the thread to stop executing.\r\n\r\n<strong>Option D is wrong.<\/strong>\u00a0because <code>main()<\/code> is the main entry point for an application.","mcq_options":[{"right":"yes","answer":"<code>run();<\/code>"},{"right":"no","answer":"<code>start();<\/code>"},{"right":"no","answer":"<code>stop();<\/code>"},{"right":"no","answer":"<code>main();<\/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\/3697","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=3697"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=3697"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=3697"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=3697"},{"taxonomy":"education_level","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/education_level?post=3697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}