{"id":79194,"date":"2020-06-29T09:00:26","date_gmt":"2020-06-29T03:30:26","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=79194"},"modified":"2020-06-29T09:00:26","modified_gmt":"2020-06-29T03:30:26","slug":"verify-java-version","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/","title":{"rendered":"How to Verify Java Version"},"content":{"rendered":"<p>Java is the Programming Language and computing platform that was released by Sun Microsystems in 1995. Java Language has two main components: JDK (Java Development Kit) and JRE (Java Runtime Environment). The Java Development Kit (JDK) is an environment used for developing the Java application.<\/p>\n<p>Java Development Kit also includes Java Runtime Environment (JRE), a Java compiler (javac), an interpreter\/loader (Java), an archiver (jar), and other developing tools. In this Java Tutorial, we will learn how to verify java version.<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/How-to-Verify-Java-Version.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79242\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/How-to-Verify-Java-Version.jpg\" alt=\"How to Verify Java Version\" width=\"1200\" height=\"628\" \/><\/a><\/p>\n<h3>What is Java Version?<\/h3>\n<p>Java Runtime Environment consists of core classes and Supporting Files to run any program in Java. JRE also consists of Java Virtual Machine (JVM). There are many versions of JRE.<\/p>\n<p>Some applications require different versions due to compatibility problems. The first number in the Java version indicates the major version, and the second number represents the release. In this article, we will learn how to verify or check the version of Java that you are using.<\/p>\n<h3>How to Verify Java Version?<\/h3>\n<p>There are three procedures to check the version of Java. They are:<\/p>\n<p><strong>1.<\/strong> Using Command Prompt<br \/>\n<strong>2.<\/strong> Using Control Panel<br \/>\n<strong>3.<\/strong> Using Java System Class<\/p>\n<p>There are various Java Versions for executing some applications. We have to check the version of Java. Some applications are compatible in a particular Java.<\/p>\n<h4>1. Using Command Prompt<\/h4>\n<p>To check the Java version using Command Prompt, follow the below steps:<\/p>\n<p><strong>1:<\/strong> Press Windows Button and Type Command Prompt<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79248\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-18.png\" alt=\"java command prompt\" width=\"973\" height=\"771\" \/><\/a><\/p>\n<p><strong>2:<\/strong> Then Open Command Prompt<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-1-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79249\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-1-7.png\" alt=\"open command prompt in java\" width=\"1461\" height=\"193\" \/><\/a><\/p>\n<p><strong>3:<\/strong> Then type the following Command<br \/>\n<strong>java -version<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-2-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79250\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-2-8.png\" alt=\"check java version\" width=\"1463\" height=\"323\" \/><\/a><\/p>\n<h4>2. Using Control Panel<\/h4>\n<p>To check Java version using Control Panel, follow the following steps:<\/p>\n<p><strong>1:<\/strong> Press Windows button then type Control Panel<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-3-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-79251 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-3-6.png\" alt=\"java control panel\" width=\"979\" height=\"773\" \/><\/a><\/p>\n<p><strong>2:<\/strong> Open the Control Panel<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-4-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79252\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-4-6.png\" alt=\"open control panel in java\" width=\"1922\" height=\"1032\" \/><\/a><\/p>\n<p><strong>3:<\/strong> Open Java and then click on the about<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-5-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79253\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-5-4.png\" alt=\"java version\" width=\"548\" height=\"603\" \/><\/a><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-6-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79255\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-6-4.png\" alt=\"java about version\" width=\"390\" height=\"277\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>3. Using Java System Class<\/h4>\n<p>We can also use the System class of Java to verify the Java version. There is a getProperty() method in the System class. The getProperty() method accepts a String key as an argument. A key represents the name of the system property.<\/p>\n<p><strong>The signature of the getProperty() method is:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">public static String getProperty(String key)<\/pre>\n<p>This method returns the String value of the system property. It returns null if there is no property with that specified key. This method can throw a NullPointerException if the key is null and an IllegalArgumentException if the key is empty.<\/p>\n<p><strong>Example to verify Java version using the System class:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.verifyjavaversion;\npublic class JavaVersionExample {\n  public static void main(String args[]) {\n    \/\/determines JRE version  \n    System.out.println(\"Java Version is: \" + System.getProperty(\"java.version\"));\n  }\n}<\/pre>\n<p><strong>Output<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-7-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79254\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/06\/pasted-image-0-7-4.png\" alt=\"\" width=\"677\" height=\"414\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>In this article, we learned to check or verify the version of Java we are using. We can do it in the three ways that we discussed with the steps and examples. You can now easily verify the version of Java if you don\u2019t remember it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java is the Programming Language and computing platform that was released by Sun Microsystems in 1995. Java Language has two main components: JDK (Java Development Kit) and JRE (Java Runtime Environment). The Java Development&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":79242,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[2942,2943,2944,2945],"class_list":["post-79194","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-check-java-version","tag-java-latest-version","tag-java-version","tag-verify-java-version"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Verify Java Version - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn how to verify java version for java programming - Using Command Prompt, Control Panel and Java System Class with example.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Verify Java Version - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn how to verify java version for java programming - Using Command Prompt, Control Panel and Java System Class with example.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-29T03:30:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/How-to-Verify-Java-Version.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Verify Java Version - TechVidvan","description":"Learn how to verify java version for java programming - Using Command Prompt, Control Panel and Java System Class with example.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/","og_locale":"en_US","og_type":"article","og_title":"How to Verify Java Version - TechVidvan","og_description":"Learn how to verify java version for java programming - Using Command Prompt, Control Panel and Java System Class with example.","og_url":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-06-29T03:30:26+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/How-to-Verify-Java-Version.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"How to Verify Java Version","datePublished":"2020-06-29T03:30:26+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/"},"wordCount":436,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/How-to-Verify-Java-Version.jpg","keywords":["check java version","Java Latest Version","java version","Verify Java Version"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/","url":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/","name":"How to Verify Java Version - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/How-to-Verify-Java-Version.jpg","datePublished":"2020-06-29T03:30:26+00:00","description":"Learn how to verify java version for java programming - Using Command Prompt, Control Panel and Java System Class with example.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/verify-java-version\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/How-to-Verify-Java-Version.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/06\/How-to-Verify-Java-Version.jpg","width":1200,"height":628,"caption":"How to Verify Java Version"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/verify-java-version\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Verify Java Version"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/79194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=79194"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/79194\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/79242"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=79194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=79194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=79194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}