{"id":172,"date":"2020-12-04T09:21:34","date_gmt":"2020-12-04T09:21:34","guid":{"rendered":"http:\/\/bhtinstitute.com\/knowhow\/?p=172"},"modified":"2020-12-04T10:12:25","modified_gmt":"2020-12-04T10:12:25","slug":"java","status":"publish","type":"post","link":"http:\/\/bhtinstitute.com\/knowhow\/java\/","title":{"rendered":"I- Java"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Let us see a brief history&nbsp;of&nbsp;Java.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>History&nbsp;<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java is a programming language developed by&nbsp;<strong>James<\/strong>&nbsp;<strong>Gosling<\/strong>&nbsp;with other team members named&nbsp;<strong>Mike Sheridan<\/strong>&nbsp;and&nbsp;<strong>Patrick Naughton<\/strong>&nbsp;also called as&nbsp;<strong>Green Team<\/strong>&nbsp;in&nbsp;<strong>1995<\/strong>&nbsp;for&nbsp;<strong>Sun Microsystems<\/strong>&nbsp;for digital devices such as set-top boxes, televisions etc. Now, let us explore the language in detail.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is Java?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It is an object-oriented language similar to C++, but with advanced and simplified features.This language is&nbsp;<strong>free to access<\/strong>&nbsp;and can&nbsp;<strong>run<\/strong>&nbsp;on&nbsp;<strong>all platforms<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/d1jnx9ba8s6j9r.cloudfront.net\/blog\/wp-content\/uploads\/2018\/01\/3-2.png\" alt=\"Java Definition - What is Java - Edureka\" class=\"wp-image-56011\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Java&nbsp;is: \u2013<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Concurrent<\/strong>&nbsp;where you can&nbsp;execute many statements instead of sequentially&nbsp;executing it.<\/li><li><strong>Class-based<\/strong>&nbsp;and an&nbsp;<strong>object-oriented<\/strong>&nbsp;programming language.<\/li><li><strong>Independent<\/strong>&nbsp;programming language that follows the logic of \u201c<strong>Write once, Run anywhere<\/strong>\u201d i.e. the compiled code can run on all platforms which supports java.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In simple words, it is a computing platform where you can develop applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may go through this session where our<a rel=\"noreferrer noopener\" href=\"https:\/\/www.edureka.co\/java-j2ee-training-course\" target=\"_blank\"><strong>&nbsp;Certification Training<\/strong><\/a>&nbsp;expert has explained the topics in a detailed manner with examples which will help you to understand the concepts better.<\/p>\n\n\n\n<!--nextpage-->\n\n\n\n<p class=\"wp-block-paragraph\">The Java Virtual Machine is called JVM, is an abstract computing machine or virtual machine interface that drives the java code.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>JVM, i.e., Java Virtual Machine.<\/li><li>JVM is the engine that drives the Java code.<\/li><li>Mostly in other Programming Languages, compiler produce code for a particular system but Java compiler produce Bytecode for a Java Virtual Machine.<\/li><li>When we compile a Java program, then bytecode is generated. Bytecode is the source code that can be used to run on any platform.<\/li><li>Bytecode is an intermediary language between Java source and the host system.<\/li><li>It is the medium which compiles Java code to bytecode which gets interpreted on a different machine and hence it makes it Platform\/Operating system independent.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">JVM&#8217;s work can be explained in the following manner<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Reading Bytecode.<\/li><li>Verifying bytecode.<\/li><li>Linking the code with the library.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Diagram of JVM<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"363\" src=\"http:\/\/bhtinstitute.com\/knowhow\/wp-content\/uploads\/2020\/12\/Diagram-of-JVM.png\" alt=\"\" class=\"wp-image-179\" srcset=\"http:\/\/bhtinstitute.com\/knowhow\/wp-content\/uploads\/2020\/12\/Diagram-of-JVM.png 565w, http:\/\/bhtinstitute.com\/knowhow\/wp-content\/uploads\/2020\/12\/Diagram-of-JVM-300x193.png 300w, http:\/\/bhtinstitute.com\/knowhow\/wp-content\/uploads\/2020\/12\/Diagram-of-JVM-60x39.png 60w, http:\/\/bhtinstitute.com\/knowhow\/wp-content\/uploads\/2020\/12\/Diagram-of-JVM-150x96.png 150w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">JVM generates a\u00a0<em><strong>.class(Bytecode)<\/strong><\/em>\u00a0file, and that file can be run in any OS, but JVM should have in OS because JVM is platform dependent.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Java is called platform independent because of Java Virtual Machine. As different computers with the different operating system have their JVM, when we submit a&nbsp;<em><strong>.class<\/strong><\/em>&nbsp;file to any operating system, JVM interprets the bytecode into machine level language.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>JVM is the main component of Java architecture, and it is the part of the&nbsp;<a href=\"https:\/\/www.w3schools.in\/java-tutorial\/jre\/\">JRE (Java Runtime Environment)<\/a>.<\/li><li>A program of JVM is written in&nbsp;<a href=\"https:\/\/www.w3schools.in\/c-tutorial\/\">C Programming Language<\/a>, and JVM is Operating System dependent.<\/li><li>JVM is responsible for allocating the necessary memory needed by the Java program.<\/li><li>JVM is responsible for deallocating&nbsp;memory space.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Let us see a brief history&nbsp;of&nbsp;Java. History&nbsp; Java is a programming language developed by&nbsp;James&nbsp;Gosling&nbsp;with other team members named&nbsp;Mike Sheridan&nbsp;and&nbsp;Patrick Naughton&nbsp;also called as&nbsp;Green Team&nbsp;in&nbsp;1995&nbsp;for&nbsp;Sun Microsystems&nbsp;for digital devices such as set-top boxes, televisions etc. Now, let us explore the language in detail. What is Java? It is an object-oriented language similar to C++, but with advanced and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":176,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-172","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"_links":{"self":[{"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":4,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"predecessor-version":[{"id":180,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/posts\/172\/revisions\/180"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/media\/176"}],"wp:attachment":[{"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bhtinstitute.com\/knowhow\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}