{"id":5120,"date":"2014-03-30T19:02:52","date_gmt":"2014-03-30T19:02:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/why-do-we-use-console-class-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:02:52","modified_gmt":"2014-03-30T19:02:52","slug":"why-do-we-use-console-class-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/why-do-we-use-console-class-collection-of-common-programming-errors\/","title":{"rendered":"why do we use console class-Collection of common programming errors"},"content":{"rendered":"<p>I was reading about <code>Console<\/code> class, and in the very first line, it was written<\/p>\n<blockquote>\n<p><strong>New to Java 6<\/strong> and when we are running <code>Java SE 6<\/code> from command line, then we are typically using console class object<\/p>\n<\/blockquote>\n<p>So, which means <strong>we are implicitly using console class through the command line ??<\/strong><\/p>\n<p>Then, start searching about the console class, i found Input from console class in java and Console link. I conclude some points<\/p>\n<blockquote>\n<ol>\n<li>Console class are <strong>only usable outside the IDE<\/strong> using <code>System.console().readLine();<\/code><\/li>\n<li><code>Console<\/code> class <strong>reads a password or passphrase from the console<\/strong> with echoing disabled using <code>readPassword()<\/code><\/li>\n<\/ol>\n<\/blockquote>\n<p>Although, we had Scanner class and BufferedReader class to read the input from console and that was added earlier than <code>Java 5<\/code>. So, only due to security reason, <code>Console<\/code> class added in <code>Java 6<\/code>. There are some other advantage to use this class.<\/p>\n<p>I&#8217;m confused, so please anyone help me to know more about the <code>console<\/code> class.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was reading about Console class, and in the very first line, it was written New to Java 6 and when we are running Java SE 6 from command line, then we are typically using console class object So, which means we are implicitly using console class through the command line ?? Then, start searching [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5120","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5120"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5120\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}