{"id":184,"date":"2009-07-27T21:42:42","date_gmt":"2009-07-27T20:42:42","guid":{"rendered":"http:\/\/www.codingfriends.com\/?p=184"},"modified":"2009-07-27T21:42:42","modified_gmt":"2009-07-27T20:42:42","slug":"hello-world-classic","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2009\/07\/27\/hello-world-classic\/","title":{"rendered":"Hello world ! classic"},"content":{"rendered":"<p>This is the classic hello world tutorial for java, to get the java compiler and also the run-time environment you will need to goto the <a href=\"http:\/\/java.sun.com\" title=\"http:\/\/java.sun.com\" target=\"_blank\">Java (Sun)<\/a>.  The compiler (javac) compiles into java byte code, which means that this code is able to run on any OS with the java run-time environment (aka virtual machine).<\/p>\n<p>If you save this <\/p>\n<pre lang=\"java\">\r\npublic class helloworld\r\n{\r\n\tpublic static void main(String[] args)\r\n\t{\r\n\t\tSystem.out.println(&quot;Hello world&quot;);\r\n\t}\r\n}\r\n<\/pre>\n<p>as helloworld.java<\/p>\n<p>and then from the command line<\/p>\n<pre class=\"consoleoutput\">\r\njavac helloworld.java\r\n<\/pre>\n<p>this will create the helloworld.class which is the java byte code, to run the byte code.<\/p>\n<pre class=\"consoleoutput\">\r\njava helloworld\r\n<\/pre>\n<p>and hopefully there will be <\/p>\n<pre class=\"consoleoutput\">\r\nHello world\r\n<\/pre>\n<p>on the console.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the classic hello world tutorial for java, to get the java compiler and also the run-time environment you will need to goto the Java (Sun). The compiler (javac) compiles into java byte code, which means that this code is able to run on any OS with the java run-time environment (aka virtual machine). &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2009\/07\/27\/hello-world-classic\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hello world ! classic<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[401,398,400],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-java","tag-java","tag-linux","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":1,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}