{"id":2304,"date":"2017-06-10T01:55:16","date_gmt":"2017-06-10T01:55:16","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=2304"},"modified":"2024-09-04T06:47:24","modified_gmt":"2024-09-04T06:47:24","slug":"control-structures-overview","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/control-structures-overview\/","title":{"rendered":"Control Structures Overview"},"content":{"rendered":"<h2>Control Structures<\/h2>\n<p>On this page, we will learn control structures. Control structures are blocks of statements that are executed based on conditions. This is very useful when we make decisions. We can control the flow of the program using control structures and branch base on the conditions.<\/p>\n<h3>If-else statement<\/h3>\n<p>If-else statement is used for decision making. If the expression is true one set of statement(s) is executed and if the expression id false another set of statement(s) is executed. Java program using the if-else clause statement:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/questions\/write-a-java-program-with-if-else-statement\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.testingdocs.com\/questions\/write-a-java-program-with-if-else-statement\/<\/a><\/p>\n<h3>Nested If<\/h3>\n<p>Nested if demo java program:<\/p>\n<p><a href=\"https:\/\/www.testingdocs.com\/questions\/java-program-for-nested_if_statement\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.testingdocs.com\/questions\/java-program-for-nested_if_statement\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Control Structures On this page, we will learn control structures. Control structures are blocks of statements that are executed based on conditions. This is very useful when we make decisions. We can control the flow of the program using control structures and branch base on the conditions. If-else statement If-else statement is used for decision [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2304","post","type-post","status-publish","format-standard","hentry","category-automation","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=2304"}],"version-history":[{"count":5,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2304\/revisions"}],"predecessor-version":[{"id":23987,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/2304\/revisions\/23987"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=2304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=2304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=2304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}