{"id":47,"date":"2020-02-08T12:31:59","date_gmt":"2020-02-08T12:31:59","guid":{"rendered":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/codersrefuge.000webhostapp.com\/?page_id=47"},"modified":"2020-05-06T16:08:07","modified_gmt":"2020-05-06T16:08:07","slug":"java-basics","status":"publish","type":"page","link":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/java\/java-basics\/","title":{"rendered":"Java Basics"},"content":{"rendered":"\n<p>A compilation of all the topics in the Java Basics Section, along with a brief explanation on their contents.<\/p>\n\n\n\n<p style=\"font-size:15px\"><em>Note: If you&#8217;re new to Java, first check out our <a href=\"https:\/\/coderslegacy.com\/java\/getting-started-java\/\">Getting Started with Java<\/a> guide. We&#8217;ll walk you through the installation process and help you configure it in the best possible way.<\/em><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-syntax\/\">Java Syntax:<\/a> Syntax is the set of rules that define how code is written. This article goes through some basic rules on how Java code should be written. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-operators\/\">Java Operators:<\/a> An Article on Arithmetic, Logical, Bit wise, Comparison and Assignments Operators in Java, complete with examples. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-input-with-scanner\/\">Java Input:<\/a> A guide on how to take user input using the Scanner Class, followed by an explanation on how to handle it effectively. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-data-types\/\">Java Data Types:<\/a> An Article that goes through the various data types in Java with examples.  Did you know about Mutable and Immutable Data types? If not, head over to the article. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-strings\/\">Java Strings:<\/a>  Strings, one of the most basic data types in a programming language. A complete guide on strings, using them, parsing them and combining them with several built in functions Java has to offer. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-loops\/\">Java Loops:<\/a> An Overview on the various types of loops in Java, what sets them apart, and where to use which. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-while-loop\/\">Java While Loops:<\/a> The While loop repeats a code block while the given condition is true. When the condition becomes false, the loops terminates and program control passes to the line immediately following the loop.<\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-do-while-loop\/\">Java Do While loops:<\/a> The Do While loop is a post condition loop that repeats a code block while the given condition is true. When the condition becomes false, the loops terminates and program control passes to the line immediately following the loop. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-loops\/\">Java For Loops:<\/a>  An individual close up analysis on For loops, how to use them effectively and in various scenarios. Complete with several examples.  <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-if-else-statement\/\">Java if else:<\/a> An individual close up analysis on if&#8230;else  statements, how to use them effectively and in various scenarios. Complete with several examples. <\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-switch-statement\/\">Java Switch Statement:<\/a> Another selection statement like the Java if else statement. Used if there is a large number of possible routes you wish to create. Depending on a certain condition, one these many route will be picked.<\/p>\n\n\n\n<p><a href=\"https:\/\/coderslegacy.com\/java\/java-methods\/\">Java Methods:<\/a>  A methods is a reusable block of code that runs only when called. Methods saves time, increase re-usability and makes your code simpler to read. Confused about the difference between functions and methods? Read this post. <\/p>\n\n\n\n<p>Java Time: Learn how to use time and date related functions in Java. <\/p>\n\n\n\n<hr>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>If you feel like our &#8220;Java Basics&#8221; section is lacking something, feel free to tell us, or you can even contribute your own article.   <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A compilation of all the topics in the Java Basics Section, along with a brief explanation on their contents. Note: If you&#8217;re new to Java, first check out our Getting Started with Java guide. We&#8217;ll walk you through the installation process and help you configure it in the best possible way. Java Syntax: Syntax is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":275,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java Basics - CodersLegacy<\/title>\n<meta name=\"description\" content=\"A compilation of all the topics in the Java Basics Section, along with a brief explanation on their contents. Java Functions, Java Loops and more!\" \/>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/coderslegacy.com\/java\/java-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Basics - CodersLegacy\" \/>\n<meta property=\"og:description\" content=\"A compilation of all the topics in the Java Basics Section, along with a brief explanation on their contents. Java Functions, Java Loops and more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/coderslegacy.com\/java\/java-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"CodersLegacy\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-06T16:08:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/coderslegacy.com\/wp-content\/uploads\/2020\/04\/CodersLegacy1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1424\" \/>\n\t<meta property=\"og:image:height\" content=\"736\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/coderslegacy.com\/#\/schema\/person\/17394e73d701df272ba635f17f0a4e8d\",\"name\":\"Raahim Siddiqi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/coderslegacy.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff7fec84138d1e1a4c04fe8ca227d429?s=96&d=mm&r=g\",\"caption\":\"Raahim Siddiqi\"},\"logo\":{\"@id\":\"https:\/\/coderslegacy.com\/#personlogo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/coderslegacy.com\/#website\",\"url\":\"https:\/\/coderslegacy.com\/\",\"name\":\"CodersLegacy\",\"description\":\"Imparting knowledge to the Future\",\"publisher\":{\"@id\":\"https:\/\/coderslegacy.com\/#\/schema\/person\/17394e73d701df272ba635f17f0a4e8d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/coderslegacy.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coderslegacy.com\/java\/java-basics\/#webpage\",\"url\":\"https:\/\/coderslegacy.com\/java\/java-basics\/\",\"name\":\"Java Basics - CodersLegacy\",\"isPartOf\":{\"@id\":\"https:\/\/coderslegacy.com\/#website\"},\"datePublished\":\"2020-02-08T12:31:59+00:00\",\"dateModified\":\"2020-05-06T16:08:07+00:00\",\"description\":\"A compilation of all the topics in the Java Basics Section, along with a brief explanation on their contents. Java Functions, Java Loops and more!\",\"breadcrumb\":{\"@id\":\"https:\/\/coderslegacy.com\/java\/java-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/coderslegacy.com\/java\/java-basics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/coderslegacy.com\/java\/java-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coderslegacy.com\/\",\"url\":\"https:\/\/coderslegacy.com\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coderslegacy.com\/java\/\",\"url\":\"https:\/\/coderslegacy.com\/java\/\",\"name\":\"JAVA\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coderslegacy.com\/java\/java-basics\/\",\"url\":\"https:\/\/coderslegacy.com\/java\/java-basics\/\",\"name\":\"Java Basics\"}}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/pages\/47"}],"collection":[{"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":0,"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/pages\/47\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/pages\/275"}],"wp:attachment":[{"href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/coderslegacy.com\/wp-json\/wp\/v2\/media?parent=47"}],"curies":[{"name":"wp","href":"https:\/\/web.archive.org\/web\/20200825084321\/https:\/\/api.w.org\/{rel}","templated":true}]}}