{"id":94926,"date":"2020-09-21T15:00:00","date_gmt":"2020-09-21T12:00:00","guid":{"rendered":"https:\/\/examples.javacodegeeks.com\/?p=94926"},"modified":"2022-07-06T15:51:46","modified_gmt":"2022-07-06T12:51:46","slug":"__trashed","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/","title":{"rendered":"Java Tutorial for Beginners (with video)"},"content":{"rendered":"<p>Welcome to this Java Core introductory tutorial for beginners! We will show you a java programming tutorial programming languages like Java are composed of <code>syntax<\/code> and <code>instructions<\/code> written by humans and performed by computers.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-1-java-tutorial-introduction\">1. Java Tutorial &#8211; Introduction<\/h2>\n<p>In this core java tutorial for beginners, we\u2019ll introduce the Java Programming Language, we\u2019ll see where we can use it and what are the different types of Java applications. Finally, we\u2019ll explain the simplest java starter <code>program<\/code>: The famous Hello World Java example, in addition to other very basic <code>programs<\/code>.<\/p>\n<p>You can also check our video about java tutorial for beginners:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.youtube.com\/watch?v=2L4ZhpNYgO4&amp;pp=QAA%3D\"><img decoding=\"async\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/07\/Java-Tutorial-for-Beginners-1024x576.jpg\" alt=\"\" class=\"wp-image-113843\" width=\"512\" height=\"288\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/07\/Java-Tutorial-for-Beginners-1024x576.jpg 1024w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/07\/Java-Tutorial-for-Beginners-300x169.jpg 300w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/07\/Java-Tutorial-for-Beginners-768x432.jpg 768w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/07\/Java-Tutorial-for-Beginners.jpg 1280w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><figcaption>Java Tutorial for Beginners: How to download and use Java<\/figcaption><\/figure>\n<\/div>\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"alignright size-large\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" alt=\"Java Tutorial\" class=\"wp-image-1204\" srcset=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg 150w, https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo-70x70.jpg 70w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"h-2-what-is-java\">2. What is Java?<\/h2>\n<p>Java is one of the most popular <code>programming languages<\/code> and <code>platforms<\/code>. Released by Sun Microsystems in 1995 by James Gosling known as \u201cThe father of Java\u201d with other team members. It was later acquired by the Oracle Corporation.<br \/>Java is a high level, simple, <a href=\"https:\/\/examples.javacodegeeks.com\/oops-concepts-java-tutorial\/\" target=\"_blank\" rel=\"noreferrer noopener\">object-oriented,<\/a> portable, robust, and very secure language. Java is loved by people because it\u2019s guaranteed to be \u201cwrite once, run everywhere\u201d meaning that the written code runs in any platform (Windows, macOS, Mobile\u2026etc.)<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-2-1-what-makes-java-particularity\">2.1 What makes Java particularity?<\/h3>\n<p>Java particularity is most importantly shown by these points:<\/p>\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/examples.javacodegeeks.com\/oops-concepts-java-tutorial\/\" target=\"_blank\">Object Oriented&nbsp;<\/a>\u2212 In Java, everything is an <code>Object<\/code>. <a rel=\"noreferrer noopener\" href=\"https:\/\/www.javacodegeeks.com\/2017\/05\/oops-concepts-need-know.html\" target=\"_blank\">See OOPS-Concepts<\/a>.<\/li>\n<li>Portable<strong> <\/strong>&nbsp;\u2013 Java is compiled into <code>bytecode<\/code> which is interpreted by the Virtual Machine (JVM) on whichever platform it is being run on.<\/li>\n<li>Simple&nbsp;\u2212 Java is easy to learn.<\/li>\n<li>Secure&nbsp;\u2013 Java compiles all the code into bytecode which is not readable by humans. In addition, Java enables to development of virus-free and tamper-free systems and uses public-key encryption for Authentication techniques.<\/li>\n<li>Robust&nbsp;\u2212 Java has a strong memory management system that helps eliminate errors during <code>compile<\/code> time error checking and runtime checking.<\/li>\n<\/ul>\n<h3 class=\"wp-block-heading\" id=\"h-2-2-what-is-java-platform\">2.2 What is Java Platform?<\/h3>\n<p>Java Platform&nbsp;is a collection of hardware or software that helps programmers to efficiently develop and run Java applications. It includes a runtime environment (JRE) and a set of libraries (Java API).<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-2-3-what-is-jvm\">2.3 What is JVM?<\/h3>\n<p>Java Virtual Machine (JVM) is a part of the Java Run Environment (JRE). Java compiler produces code for the Java Virtual Machine and the JVM runs it.<\/p>\n<h2 class=\"has-text-align-left wp-block-heading\" id=\"h-3-where-can-we-use-java-applications\">3. Where can we use Java Applications?<\/h2>\n<p>Java is used everywhere. Since it\u2019s secured and reliable, it\u2019s widely used for developing Java desktop applications (Ninety-seven percent of the world\u2019s enterprise desktops), web apps, banking applications, embedded systems, data centers, games (such as Minecraft), Robotics, billions of cell phones apps, IDE (such as Eclipse, Netbeans and Intellij), etc.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-4-what-are-the-different-types-of-java-applications\">4. What are the different types of Java Applications?<\/h2>\n<p>You can find mainly 6 types of Java applications&nbsp;:<\/p>\n<ol class=\"wp-block-list\">\n<li>Standalone Application: This is the traditional desktop application that we need to install on every machine. Examples: Acrobat reader, Media player, ThinkFree, antiviruses, etc. The modern way to develop a desktop application in Java is using <a href=\"https:\/\/examples.javacodegeeks.com\/desktop-java\/javafx\/javafx-tutorial-beginners\/#:~:text=JavaFX%20is%20an%20open%20source,development%20technology%20in%20Java%20platform.\" target=\"_blank\" rel=\"noreferrer noopener\">JavaFX<\/a>. <\/li>\n<li> Web Application: This is a collection of web components (such as <a href=\"https:\/\/www.oracle.com\/technical-resources\/articles\/javase\/servlets-jsp.html\" target=\"_blank\" rel=\"noreferrer noopener\">Java Servlets, JSP pages<\/a>) and frameworks (such as <a href=\"https:\/\/spring.io\" target=\"_blank\" rel=\"noreferrer noopener\">Spring<\/a>, <a href=\"https:\/\/www.oracle.com\/java\/technologies\/javaserverfaces.html\" target=\"_blank\" rel=\"noreferrer noopener\">JSF<\/a>,<a href=\"http:\/\/www.gwtproject.org\/doc\/latest\/tutorial\/i18n.html\" target=\"_blank\" rel=\"noreferrer noopener\"> GWT<\/a>, <a href=\"https:\/\/struts.apache.org\" target=\"_blank\" rel=\"noreferrer noopener\">Struts<\/a>, Hibernate\u2026etc.) used to create dynamic websites. These java web technologies are used to develop E-commerce platforms, government web apps, healthcare web apps, banking web apps\u2026etc.<\/li>\n<li>Enterprise Applications: These are Java applications written for enterprises; the leading technology here is Java EE which is composed of a set of APIs (EJB, JMS, JPA, JTA, etc.) It has advantages of high-level security, load balancing, and clustering.<\/li>\n<li>Web services: The java web services let your Java application interact with other applications developed in another language (PHP, .NET, Etc.). The RESTfull services are created using Spring MVC. You can find other types of web services (SOAP for example).<\/li>\n<li>Big Data technologies: Java is used in Hadoop, ElasticSearch, and other big data technologies. There are other dominating Big data technologies like MongoDB, which is written in C++.<\/li>\n<li>Android Application: Java is an official language of Android development. Almost any app on your Android mobile is actually written in Java programming language: Messaging, phone call, Agenda, Calculator\u2026etc.<\/li>\n<\/ol>\n<h2 class=\"wp-block-heading\" id=\"h-5-java-basic-examples\">5. Java basic examples<\/h2>\n<p>Our examples in this core Java tutorial are easy to learn. So, happy learning!<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-5-1-how-to-create-your-first-java-program\">5.1 How to create your first Java Program?<\/h3>\n<p>Certainly our first java program will be the traditionnel and the simplest program called \u201cHelloWorld\u201d that outputs on the screen: \u201cHello, World!\u201d. <\/p>\n<p>In our examples, we&#8217;ll use <a href=\"https:\/\/treehouse.github.io\/installation-guides\/windows\/intellij-idea-win.html\" target=\"_blank\" rel=\"noreferrer noopener\">Intellij IDEA<\/a> IDE. You can use instead Eclipse or NetBeans.<br \/>Before we start, it\u2019s important to understand that Java programs are composed of pieces called <code>Classes<\/code> which include other smaller pieces called <code>methods<\/code>(or <code>functions<\/code>). These <code>methods<\/code> perform tasks and <code>return<\/code> information.<\/p>\n<p>Firstly, open your prefered IDE. After that,<a rel=\"noreferrer noopener\" href=\"https:\/\/www.jetbrains.com\/help\/idea\/creating-and-running-your-first-java-application.html\" target=\"_blank\"> create a new Java project<\/a> called <code>HelloWorld<\/code>. Add a new Java <code>class<\/code> named: <code>HelloWorld.java<\/code> and write inside the <code>code<\/code> below:<\/p>\n<pre class=\"brush:java\">class HelloWorld {\n}<\/pre>\n<p>Well done! you\u2019ve just created your first Java <code>class<\/code>! As you can see, we have named the <code>file<\/code> the same as the <code>class<\/code> name. This should be always respected in Java Programs.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Let&#8217;s explore what we\u2019ve written:<\/p>\n<p>The word <code>class<\/code> is a<a href=\"https:\/\/www.javatpoint.com\/java-keywords\" target=\"_blank\" rel=\"noreferrer noopener\"> Java <code>keyword<\/code><\/a>(also called <code>reserved words<\/code>) used to say that what is coming next is a Java <code>class<\/code>. It should always be written with lowercase letters and is immediately followed by the <code>class<\/code> <code>name<\/code>. The <code>name<\/code> can be anything but should respect the <a href=\"https:\/\/www.javatpoint.com\/java-naming-conventions#:~:text=CamelCase%20in%20java%20naming%20conventions,%2C%20ActionEvent%2C%20ActionListener%2C%20etc.\" target=\"_blank\" rel=\"noreferrer noopener\">Java naming conventions<\/a>.<\/p>\n<p>Every <code>class<\/code> and every method in Java begins with opening braces <code>{<\/code> and ends with matching closing braces<code>}<\/code>.<br \/>So this is your first Java <code>program<\/code>, but in order to run it, we need to add a <code>method<\/code>.<br \/>Let\u2019s write this <code>method<\/code> called <code>main<\/code> inside our <code>HelloWorld<\/code> Java <code>Class<\/code>:<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HelloWorld.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n    }\n}<\/pre>\n<\/div>\n<p>Prints:<\/p>\n<div class=\"wp-block-syntaxhighlighter-code \">\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nHello, World!\n\n<\/pre>\n<\/div>\n<p>We know that class is the keyword that declares a class in Java. Let\u2019s understand what the other keywords consist of:<br \/>Public: this keyword is used to say that our \u201cmain\u201d method is visible to all the other classes in the program. It\u2019s an access specifier.<\/p>\n<p><code>Static<\/code>: This keyword is used to make our <code>main<\/code> <code>method<\/code> <code>static<\/code> meaning that our <code>method<\/code> is called by the JVM without creating an <code>object<\/code> for our HelloWorld <code>class<\/code>. We do not need to create an <code>object<\/code> for <code>static<\/code> <code>methods<\/code> to run. They can run themselves.<\/p>\n<p><code>Void<\/code>: This <code>keyword<\/code> represents the <code>return type<\/code>. <code>Void<\/code> means that our <code>main<\/code> <code>method<\/code> will not <code>return<\/code> anything.<\/p>\n<p>The <code>main()<\/code> <code>method<\/code> is the most important <code>method<\/code> in a Java <code>Program<\/code>. This is the <code>entry point<\/code> <code>method<\/code> from which the JVM can run your program. Therefore all your logic must be inside the <code>main()<\/code> <code>method<\/code>. A Java Program without a <code>main()<\/code> <code>method<\/code> causes a <code>compilation<\/code> <code>error<\/code>.<\/p>\n<p><code>String [] args<\/code>: This consists of <code>an array<\/code>. Its <code>type<\/code> is: <code>String<\/code> and its <code>name<\/code> is: <code>args<\/code>. It\u2019s used for <code>command-line arguments<\/code> that are passed as <code>strings<\/code>.<\/p>\n<p><code>System.out.println<\/code>: This is a <code>function<\/code> used to print something on the console.<\/p>\n<p>Now, the program is ready to be run. If you want to know <a href=\"https:\/\/examples.javacodegeeks.com\/core-java\/how-to-create-and-run-your-first-java-program\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Compile and Run<\/a> this simple Java HelloWorld Program, please refer to our tutorial.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-5-2-other-core-java-basic-examples\">5.2 Other  core Java basic examples:<\/h3>\n<p>First thing first we gonna talk about <code>variables<\/code>.<\/p>\n<p> After that, we gonna use our first project Hello World to add some new lines of <code>code<\/code>.<\/p>\n<p>So, what is a <code>variable<\/code>? A <code>variable<\/code> is a place in your computer memory like a box that you can store something in. You can have hundreds and thousands of boxes (<code>variables<\/code>) in Java where you will store information about your <code>program<\/code>. <code>Variables<\/code> make the program very useful. But in Java, we need to define the data <code>type<\/code> of the <code>variable<\/code> in order to use it. The very basic data <code>type<\/code> is <code>int<\/code> short for Integer.<\/p>\n<p>Integer in math numbers is a whole number and it\u2019s the same thing in Java. So, in Java, we have to define first the data <code>type<\/code> of the <code>variable<\/code> followed by the <code>name<\/code> of the <code>variable<\/code>. Finally, we should assign a <code>value<\/code> to that variable by using the equal <code>=<\/code> sign. Let\u2019s see that in action, go to your HelloWorld.java <code>class<\/code> and add this line of code to your program:<\/p>\n<pre class=\"brush:java\">int firstNumber=2;\n<\/pre>\n<p>Now, your program looks like below:<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HelloWorld.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n        int firstNumber=2;\n    }\n}<\/pre>\n<\/div>\n<p>In order to print that <code>variable<\/code> to the Console, remember which java <code>function<\/code> we should use? Well done! It\u2019s the <code>System.out.println() <\/code> <code>function<\/code>. But, instead of printing the phrase in double-quotes &#8220;Hello, world!&#8221; that represents a <code>String<\/code> (another Java basic data type), we will print the content of the <code>variable<\/code> <code>firstNumer<\/code>. Can you figure out what we\u2019ll do? Very good, we&#8217;ll just put the <code>name<\/code> of our <code>variable<\/code> between the two brackets of the <code>function <\/code>without adding the double-quotes. Remember that using the double- quotes indicates to Java that the data <code>type<\/code> used is a <code>String<\/code>:<\/p>\n<pre class=\"brush:java\"> System.out.println(firstNumber);\n<\/pre>\n<p>Now, your program looks like this:<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HelloWorld.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n        int firstNumber=2;\n        System.out.println(firstNumber);\n    }\n}<\/pre>\n<\/div>\n<p>Run your program, you can see printed in your console:<\/p>\n<pre class=\"brush:plain\">Hello, World!\n2\n<\/pre>\n<p>The good thing about <code>variables<\/code> is that we can change their <code>value<\/code>, just like boxes, we can replace their content. In other words, we can assign a <code>number<\/code> to our <code>variable<\/code> <code>firstNumber<\/code> then change it and assign another <code>number<\/code> to it. Let\u2019s try it out:<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HelloWorld.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n        int firstNumber=2;\n        System.out.println(firstNumber);\n        \/\/We replace 2 by 7 in our variable firstNumber\n        firstNumber=7;\n        System.out.println(firstNumber);\n    }\n}<\/pre>\n<\/div>\n<p>Run again your program, you can see printed in your console:<\/p>\n<pre class=\"brush:plain\">Hello, World!\n2\n7\n<\/pre>\n<p>We can also put in our <code>variable<\/code> a mathematical expression, just replace the value 7 by 7+4, run your program again then take a look at your console. <\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HelloWorld.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n        int firstNumber=7+4;\n        System.out.println(firstNumber);\n    }\n}<\/pre>\n<\/div>\n<p>You should see printed the result of the addition 7+4:<\/p>\n<pre class=\"brush:plain\">Hello, World!\n11\n<\/pre>\n<p>That is because Java calculates the mathematical <code>expression<\/code> 7+4 then replace it with its result into the memory location of the <code>variable<\/code> containing that <code>expression<\/code>.<\/p>\n<p>You can write a longer mathematical <code>expression<\/code>, use <code>brackets<\/code> and do more complex <code>operations<\/code>: (7+4)+(5*9);<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;class.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n        int firstNumber=(7+4)+(5*9);\n        System.out.println(firstNumber);\n    }\n}<\/pre>\n<\/div>\n<p id=\"block-d4f0c7ae-b552-4b8a-90f5-b82537f0391d\">This program will print:<\/p>\n<pre class=\"brush:plain\">Hello, World!\n56\n<\/pre>\n<p>Now, add a second <code>variable<\/code> of type <code>int<\/code>. Name it: <code>secondNumber<\/code> and assign to it the value: 9. Finally, print it out!<\/p>\n<pre class=\"brush:java\">int secondNumber=9;\nSystem.out.println(secondNumber);\n<\/pre>\n<p>Okay, you can say you\u2019ve started programming in Java. The complete program looks like below:<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;HelloWorld.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n        int firstNumber=7;\n        System.out.println(firstNumber);\n        int secondNumber=9;\n        System.out.println(secondNumber);\n    }\n}<\/pre>\n<\/div>\n<p>Add a third <code>variable<\/code> of type <code>int<\/code> named <code>result<\/code>. Assign to it the addition of the two other <code>variables<\/code>:<\/p>\n<pre class=\"brush:java\">int result= firstNumber+secondNumber;\n<\/pre>\n<p>Now, if we want to print each <code>variable<\/code> <code>name<\/code> with its value, what do you think we should do? Try this line of code:<\/p>\n<pre class=\"brush:java\">System.out.println(\"firstNumber\");\n<\/pre>\n<p>Prints:<\/p>\n<pre class=\"brush:plain\">firstNumber\n<\/pre>\n<p>As you can see in this core java  programming tutorial, now that we have put our <code>variable<\/code> <code>firstNumber<\/code> between double-quotes, Java will interpret it as a <code>String<\/code> and no more as a <code>variable<\/code>. Therefore, if we want to print the <code>name<\/code> of our <code>variable<\/code> followed by its value, we should print: <code>\u201cfirstName\u201d+firstName<\/code><br \/>Here the <code>+<\/code> sign is used to <code>concatenate<\/code> the <code>String<\/code> <code>\u201cfirstName\u201d<\/code> and the <code>int<\/code> <code>value<\/code> of the <code>variable<\/code> <code>firstName<\/code>.<br \/>Focus on these lines below and try to guess what will they print:<\/p>\n<div class=\"wp-block-codemirror-blocks-code-block code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;file&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-java&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;fileName&quot;:&quot;class.java&quot;,&quot;language&quot;:&quot;Java&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;java&quot;}\">public class HelloWorld {\n    public static void main(String[]args){\n        System.out.println(&quot;Hello, World!&quot;);\n\n        int firstNumber=7;\n        int secondNumber=9;\n        int result= firstNumber+secondNumber;\n\n        System.out.println(&quot;My firstNumber is:&quot;+firstNumber);\n        System.out.println(&quot;My secondNumber is:&quot;+secondNumber);\n        System.out.println(&quot;My result= firstNumber+secondNumber=&quot;+result);\n        System.out.println(&quot;The double of my result=&quot;+result*2);\n    }<\/pre>\n<\/div>\n<p>These lines will print:<\/p>\n<pre class=\"brush:plain\">Hello, World!\nMy firstNumber is:7\nMy secondNumber is:9\nMy result= firstNumber+secondNumber=16\nThe double of my result=32\n<\/pre>\n<h2 class=\"wp-block-heading\" id=\"h-6-summary\">6. Summary<\/h2>\n<p>In this article, we covered a core java programming tutorial, where we can use it, its applications then concluded our article by the famous Hello World program and some other Java basic examples.<\/p>\n<p>Just remember that:<br \/>\u2022 JVM is the Java Virtual Machine. It\u2019s the engine that runs the Java Code. It converts Java bytecode into native machine language. If you don\u2019t have a JVM installed on your machine, how to install JVM.<br \/>\u2022 &#8220;Java is a programming language as well as a Platform&#8221;.<br \/>\u2022 Every Java Program needs a main() method to be executed: It\u2019s the Entry Point.<br \/>\u2022 Every java application(program) must have at least one class.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-7-more-articles\">7. More articles<\/h2>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.javacodegeeks.com\/learn-java-programming-online.html\">Best Way to Learn Java Programming Online<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-hello-world-example\/\">Java Hello World Example<\/a><\/li>\n<li><a href=\"https:\/\/www.javacodegeeks.com\/java-interview-questions.html\">150 Java Interview Questions and Answers<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/what-is-java-used-for\/\">What is Java used for<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-constructor-example\/\">Java Constructor Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/for-each-loop-java-8-example\/\">For Each Loop Java 8 Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/simple-while-loop-java-example\/\">Simple while loop Java Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/printf-java-example\/\">Printf Java Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-set-example\/\">Java Set Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-collections-tutorial\/\">Java Collections Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/polymorphism-java-example\/\">Polymorphism Java Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/try-catch-java-example\/\">Try Catch Java Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-stack-example\/\">Java Stack Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-queue-example\/\">Java Queue Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-switch-case-example\/\">Java Switch Case Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-map-example\/\">Java Map Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-api-tutorial\/\">Java API Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-util-scanner-scanner-java-example\/\">java.util.Scanner \u2013 Scanner Java Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-list-example\/\">Java List Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/java-array-example\/\">Java Array \u2013 java.util.Arrays Example<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/arraylist-java-example\/\">ArrayList Java Example \u2013 How to use arraylist<\/a><\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-8-download-the-source-code\">8. Download the Source Code<\/h2>\n<p>That was a core java programming tutorial for beginners.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/09\/JavaTutorialforBeginners.zip\"><strong>Java Tutorial for Beginners<\/strong><\/a><\/div>\n<p><strong>Last updated on Apr. 26th, 2021<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to this Java Core introductory tutorial for beginners! We will show you a java programming tutorial programming languages like Java are composed of syntax and instructions written by humans and performed by computers. 1. Java Tutorial &#8211; Introduction In this core java tutorial for beginners, we\u2019ll introduce the Java Programming Language, we\u2019ll see where &hellip;<\/p>\n","protected":false},"author":235,"featured_media":1204,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-94926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-core-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java Tutorial for Beginners (video) - Examples Java Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Java tutorial: introduction of the the Java Language, we\u2019ll see where we can use it and what are the different types of Java apps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Tutorial for Beginners (video) - Examples Java Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Java tutorial: introduction of the the Java Language, we\u2019ll see where we can use it and what are the different types of Java apps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-21T12:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-06T12:51:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rachida Maaradji\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rachida Maaradji\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\"},\"author\":{\"name\":\"Rachida Maaradji\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/eb500146d79c80efbfbf5ba6c9572b6a\"},\"headline\":\"Java Tutorial for Beginners (with video)\",\"datePublished\":\"2020-09-21T12:00:00+00:00\",\"dateModified\":\"2022-07-06T12:51:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\"},\"wordCount\":1848,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"articleSection\":[\"Core Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\",\"name\":\"Java Tutorial for Beginners (video) - Examples Java Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"datePublished\":\"2020-09-21T12:00:00+00:00\",\"dateModified\":\"2022-07-06T12:51:46+00:00\",\"description\":\"Java tutorial: introduction of the the Java Language, we\u2019ll see where we can use it and what are the different types of Java apps.\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"Bipartite Graph\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Core Java\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Java Tutorial for Beginners (with video)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/eb500146d79c80efbfbf5ba6c9572b6a\",\"name\":\"Rachida Maaradji\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/08\/rachida.-maaradji-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/08\/rachida.-maaradji-96x96.jpg\",\"caption\":\"Rachida Maaradji\"},\"description\":\"Rachida has graduated from the Computer Engineering and Informatics Department in the Higher School Of Computer Science of Algiers (ESI). She also holds a Master's degree in Multimedia Information Systems and the Internet from the Picardie Jules Verne University of France(UPJV). During her studies, she has been involved with a large number of projects ranging from programming to software engineering design and analysis. She works as a Junior Software Engineer in the web &amp; mobile development sector where she is mainly involved with projects based on Java and NoSql technologies.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/rachida-maaradji\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Tutorial for Beginners (video) - Examples Java Code Geeks - 2026","description":"Java tutorial: introduction of the the Java Language, we\u2019ll see where we can use it and what are the different types of Java apps.","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:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/","og_locale":"en_US","og_type":"article","og_title":"Java Tutorial for Beginners (video) - Examples Java Code Geeks - 2026","og_description":"Java tutorial: introduction of the the Java Language, we\u2019ll see where we can use it and what are the different types of Java apps.","og_url":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2020-09-21T12:00:00+00:00","article_modified_time":"2022-07-06T12:51:46+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","type":"image\/jpeg"}],"author":"Rachida Maaradji","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Rachida Maaradji","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/"},"author":{"name":"Rachida Maaradji","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/eb500146d79c80efbfbf5ba6c9572b6a"},"headline":"Java Tutorial for Beginners (with video)","datePublished":"2020-09-21T12:00:00+00:00","dateModified":"2022-07-06T12:51:46+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/"},"wordCount":1848,"commentCount":0,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","articleSection":["Core Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/","url":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/","name":"Java Tutorial for Beginners (video) - Examples Java Code Geeks - 2026","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","datePublished":"2020-09-21T12:00:00+00:00","dateModified":"2022-07-06T12:51:46+00:00","description":"Java tutorial: introduction of the the Java Language, we\u2019ll see where we can use it and what are the different types of Java apps.","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2012\/12\/java-logo.jpg","width":150,"height":150,"caption":"Bipartite Graph"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/java-tutorial-for-beginners\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java Development","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/"},{"@type":"ListItem","position":3,"name":"Core Java","item":"https:\/\/examples.javacodegeeks.com\/category\/java-development\/core-java\/"},{"@type":"ListItem","position":4,"name":"Java Tutorial for Beginners (with video)"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/eb500146d79c80efbfbf5ba6c9572b6a","name":"Rachida Maaradji","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/08\/rachida.-maaradji-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2020\/08\/rachida.-maaradji-96x96.jpg","caption":"Rachida Maaradji"},"description":"Rachida has graduated from the Computer Engineering and Informatics Department in the Higher School Of Computer Science of Algiers (ESI). She also holds a Master's degree in Multimedia Information Systems and the Internet from the Picardie Jules Verne University of France(UPJV). During her studies, she has been involved with a large number of projects ranging from programming to software engineering design and analysis. She works as a Junior Software Engineer in the web &amp; mobile development sector where she is mainly involved with projects based on Java and NoSql technologies.","url":"https:\/\/examples.javacodegeeks.com\/author\/rachida-maaradji\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/94926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/235"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=94926"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/94926\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/1204"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=94926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=94926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=94926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}