3:I[39275,[],""]
5:I[61343,[],""]
6:I[23053,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],"StateProvider"]
7:I[19593,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],""]
8:I[18709,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","5706","static/chunks/9c4e2130-08078aeb5700c43b.js","5505","static/chunks/385cb88d-fd2f37c33b8aa92c.js","5452","static/chunks/5e22fd23-9bf9fa71e7554411.js","9956","static/chunks/ee560e2c-f551c028fd538293.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","6648","static/chunks/6648-3bc9d66179346fb0.js","9160","static/chunks/app/not-found-5850ce7843ba4d5a.js"],"default"]
9:I[45723,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","9617","static/chunks/9617-544346a1cd0024b4.js","3185","static/chunks/app/layout-8c4bc5784f5090d9.js"],"default"]
4:["all","java-tutorials","c"]
0:["79z6y6ppLce0GndJRjYzJ",[[["",{"children":[["all","java-tutorials","c"],{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":[["all","java-tutorials","c"],{"children":["__PAGE__",{},[["$L1","$L2"],null],null]},["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children","$4","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/402d889fee29bde2.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0ff6cecb1d0e96f8.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/cb4e98a4c2dc4d80.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/a246b44e33111fd9.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","4",{"rel":"stylesheet","href":"/_next/static/css/9d9d0f6a85930e46.css","precedence":"next","crossOrigin":"$undefined"}]]}],null]},[["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L6",null,{"children":[["$","$L7",null,{}],["$","$L3",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":["$","$L8",null,{}],"notFoundStyles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/cb4e98a4c2dc4d80.css","precedence":"next","crossOrigin":"$undefined"}]],"styles":null}],["$","$L9",null,{}]]}]}]}],null],null],[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/0cc2495744a38244.css","precedence":"next","crossOrigin":"$undefined"}]],"$La"]]]]
b:I[67379,["7699","static/chunks/8e1d74a4-5fcc24cf3a9fd8c2.js","5706","static/chunks/9c4e2130-08078aeb5700c43b.js","5505","static/chunks/385cb88d-fd2f37c33b8aa92c.js","5452","static/chunks/5e22fd23-9bf9fa71e7554411.js","9956","static/chunks/ee560e2c-f551c028fd538293.js","7240","static/chunks/53c13509-baa86b522e6ae78c.js","6051","static/chunks/795d4814-d7614a20709c27af.js","614","static/chunks/3d47b92a-f2bb54912083012c.js","9212","static/chunks/59650de3-13cfd2620b7240d2.js","522","static/chunks/94730671-a8ad9eca65504500.js","7675","static/chunks/b563f954-501d993050fd0717.js","1994","static/chunks/e34aaff9-cd556a7ee1a90c03.js","6990","static/chunks/13b76428-5a68792917164904.js","5957","static/chunks/30a37ab2-a5fc2d8864b3152b.js","6844","static/chunks/f25cdb8d-30c837856fb6d42d.js","7259","static/chunks/479ba886-8536ff4966e1aaf8.js","4740","static/chunks/4740-14bdf05e7ce04a11.js","6648","static/chunks/6648-3bc9d66179346fb0.js","4349","static/chunks/4349-c8f0646a83cc4179.js","4791","static/chunks/4791-6c93b9aca8a9f315.js","5225","static/chunks/5225-dc21c87d99338f19.js","9293","static/chunks/9293-d1b040d0324d0d5a.js","5919","static/chunks/5919-545104f05818203e.js","1413","static/chunks/1413-986ad1f4cd2d661e.js","2499","static/chunks/2499-61bd3b514e9c4cb8.js","4175","static/chunks/4175-fb05509a4e1790ec.js","5653","static/chunks/app/%5B...all%5D/page-f1bbbeae9a681a62.js"],"default"]
c:T6ed7,<p style="text-align: justify;">Welcome to the Java Tutorials. The objective of these tutorials is to provide in depth understand of java from basic questions like what is java tutorial, core java, where it is used, what type of applications are created in java and why use java.</p>
<p style="text-align: justify;">In addition to free Java Tutorials, you can find interview questions, how to tutorials and issues and their resolutions of Java.</p>
<h2><span style="color: #000000;">JAVA Introduction</span></h2>
<p>Java is a programming language that was created by James Gosling from Sun Microsystems (Sun) in 1991 and first made publicly available in 1995, after Sun Microsystems was inherited by Oracle. The platform was originally designed for interactive television, but it surpassed the technology and design of the digital cable television industry at the time. Today, Java remains an open-source programming language that falls under the GPL (General Public License) The language derives much of its syntax from C and C++, but lacks the power of those languages because it asks less of the user (less customization, more simplicity). For example, tasks such as garbage collection (the process of reducing memory being used by the program) are automated in Java. Five principles were used in the creation of the Java programming language:</p>
<ul style="list-style-type: disc;">
<li>It must be simple, object-oriented, and familiar</li>
<li>It must be robust and secure</li>
<li>It must be architecture-neutral and portable</li>
<li>It must execute with high performance</li>
<li>It must be interpreted, threaded, and dynamic</li>
</ul>
<p>Java was built as an exclusively object-oriented programming language&mdash;which doesn&rsquo;t mean much right now, but will later in this guide. For now, suffice it to say that object-oriented programming allows for the creation of efficient, organized, and powerful code. Simply put, Java is a multithreaded, object-oriented, platform-independent programming language. This means that Java programs can perform multiple tasks using object-oriented concepts that can work across all platforms and operating systems. It is the most important factor distinguishing Java from other languages. Java helps us to develop normal desktop applications, mobile applications, and web applications using separate packages such as the J2ME package for mobile application development and the J2EE package for web application development. In this guide, we are going to learn the basics of object-oriented concepts as they apply to Java programming. We have two different types of application development concepts in Java: console-based application and GUI application development. Let&rsquo;s see how to develop these types of applications using Java.</p>
<h2><span style="color: #000000;">What is Java?</span></h2>
<p>Java is a programming language that is supported by all devices, whether it is an Android phone, a Windows computer, or an Apple product. Java&rsquo;s flexibility has made it one of the most popular programming languages around the globe. Java can be used to create web applications, games, Windows applications, database systems, Android apps, and much more. Java&rsquo;s combined simplicity and power makes it different from other programming languages. Java is simple in that it doesn&rsquo;t expect too much from the user in terms of memory management or dealing with a vast and complex hive of intricate classes extending from each other. Although this doesn&rsquo;t make much sense right now, it will once we start learning about inheritance in Java. A Java program is run through a Java Virtual Machine (JVM), which is essentially a software implementation of an operating system that is used to execute Java programs. The compiler (process of converting code into readable instructions for the computer) analyzes the Java code and converts it into byte code, which then allows the computer to understand the instructions issued by the programmer and execute them in the appropriate manner. The distribution of the Java platform comes in two packages: the Java Runtime Environment (JRE) and the Java Development Kit (JDK). The JRE is essentially the Java Virtual Machine (JVM) that runs Java programs. The JDK, on the other hand, is a fully featured software development kit that includes the JRE, compilers, tools, etc. <img class="aligncenter wp-image-27747" title="Learn JAVA Tutorials Online" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/12/Screenshot_23.jpg" alt="Learn JAVA Tutorials Online" width="783" height="338" /> A casual user who only wants to run Java programs on their machine would only need to install the JRE, as it contains the JVM that allows Java programs to be executed. However, a <a href="https://tekslate.com/functions-javascript/" target="_blank">Java&nbsp;<em>programmer</em></a>&nbsp;must download the JDK. We will explore these concepts in greater detail in the next part. As previously stated, Java programming creates an object-oriented and platform-independent program because the Java compiler creates a .class file instead of an .exe file. This .class file is an intermediate file that has byte code, and this is the reason why Java programs are platform independent. However, there are also disadvantages: Java programs take more time to complete their execution because the .class file must first load in the JVM before they are able to run in the OS. We can develop all kinds of applications using Java, but we need to use separate packages for separate application developments. For example, if you want develop a desktop application, then you need to use JDK; if you want to develop an Android application, then you need to use Android SDK, because they have different sets of classes.</p>
<h3><span style="color: #000000;">Java Language Structure</span></h3>
<p>We will now use this sample code as an example to start the Java learning process. This code should make it easy to understand the basic structure of a Java program.</p>
<pre style="padding-left: 30px;"><u>i</u>mport java.util.Scanner;
public class&nbsp;<u>ThisIsAClass</u>&nbsp;{
public static void main (String args[]) {
int x = 5;
System.<em>out</em>.println(x);
}
}</pre>
<p>The first line import java.util.Scanner; it is using the special keyword <u>i</u>mport, which allows the programmer to import tools in the Java library that aren&rsquo;t included by default when starting a new class. After the keyword&nbsp;<u>i</u>mport, the programmer specifies a specific directory within the Java library for the Scanner tool by typing out: java.util.Scanner, which first accesses the Java library in the Utilities directory before accessing the specific tool needed, which in this case is &ldquo;Scanner.&rdquo; By default, when starting a Java class, only the bare minimum tools and functions from the Java library that are needed for any basic program will be provided. For example, you don&rsquo;t need to import packages for a simple program. If the programmer wants to use more than just the basic functionalities, they must use the &ldquo;Import&rdquo; keyword to give themselves more tools to work with. You will also start to notice that there is a semicolon &ldquo;;&rdquo; after each statement. This semicolon functions as a period does for an English sentence. When the compiler is going through the program to prepare it for its execution, it will check for semicolons, so it knows where a specific statement ends and a new one starts. The next thing you&rsquo;ll notice in the sample code is: public class ThisIsAClass. There are three elements to this line that are very important to understand. public&mdash;Defines the scope of the class and whether or not other classes have access to the class. This may not make sense now, but you will gain a better understanding of what this means when we learn about &ldquo;Inheritance and Polymorphism.&rdquo; class&mdash;A class can be thought of as a &ldquo;section&rdquo; of code. For example:</p>
<p style="padding-left: 30px;">Section {everything here is the content of the section}</p>
<p>Again, you will gain a better understanding of how classes can be useful when we learn about Inheritance and Polymorphism. ThisIsAClass&mdash;This third and final element of this important line is &ldquo;ThisIsAClass,&rdquo; which is simply a custom name that the user can define. You can call this anything, as all it does is give the &ldquo;Section&rdquo; or &ldquo;Class&rdquo; a name.</p>
<pre style="padding-left: 30px;">Section:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
 &nbsp;&nbsp; Essay/Contents
}
 In code, it would be presented:
Class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ThisIsAClass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
 Code
}

</pre>
<p>Another thing you may be scratching your head over are the curly braces: &ldquo;{&rdquo; and &ldquo;}.&rdquo; All that these characters do is tell the compiler where a specific section starts and ends. In English, this could be thought of as starting a sentence with a capital letter or indenting a new paragraph. One thing to note is that the spacing in code does not affect whether or not it works. However, it is conventional and efficient to write properly spaced code so that you and other programmers can read and understand it more easily. You will learn how to space as you read more sample code. Eventually, you will start to notice trends in how conventional spacing works in programming.</p>
<pre style="padding-left: 30px;">public static void main (String args[])&nbsp;<u>{
</u>int x = 5;
System.out.println(&ldquo;The number is&rdquo; + x);
<u>}
</u>}</pre>
<p>As shown in the above sample code, two curly braces are set in bold to indicate that they communicate with each other. Whatever is written between them is the &ldquo;Section&rdquo; or &ldquo;Class&rdquo; of name &ldquo;ThisIsAClass.&rdquo; The sample applies to the bold and underlined curly braces to indicate that they are separate section dividers for the section within the parent section. The parent section is again considered a class, whereas the section within the parent section is considered a sub-section, or a subclass, or the formal term, a method. A method is essentially a subclass that also has its own special elements, similar to a class but more specific. This contains four elements: a scope (public/private/protected), a return type, a name, and parameters. The scope, return type, and parameters are things you will understand better when we learn about Methods, along with Inheritance and Polymorphism.</p>
<ul>
<li style="padding-left: 30px;">public&mdash;Scope.</li>
<li style="padding-left: 30px;">static&mdash;Conventional keyword for the main method.</li>
<li style="padding-left: 30px;">void&mdash;Return type.</li>
<li style="padding-left: 30px;">main&mdash;Name of the method (you can call this anything, but in this case, the main method must always exist in every Java program because it is the starting point of the Java program).</li>
</ul>
<p>This method is a special method because it is named &ldquo;main&rdquo; and so it will be the first method that is called. The compiler always looks for the method named &ldquo;main&rdquo; at the process start. The main method must hold the following properties: &ldquo;public static void&rdquo; and have &ldquo;String args[]&rdquo; as the argument in the parameters. There can only be one main method in a Java project. The idea of the main method is that it will be the first method to be called, and so you can think of it as the home base for calling other methods and traveling to other classes (you will learn what this means later). For the remainder of this guide, your program must be written within this main method, as it is a special method that the compiler will always be looking for. The contents of this method will also be introduced when learning about &ldquo;Variables&rdquo; later on in this guide. For now, this brief explanation should be enough for you to understand what is going on: int x = 5;&mdash;A variable is being declared (a container) that is a type of integer (whole number), and it holds the value of five. The &ldquo;=&rdquo; is used to assign values to variables. System.out.println&mdash;This is a classic line that every beginner learns; all it does is print a line of text to the console. Example <img class="aligncenter wp-image-27734" title="JAVA Tutorials" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/12/Screenshot_999.jpg" alt="JAVA Tutorials" width="719" height="337" /> The console is where the program&rsquo;s output is placed in order for the programmer to test his or her program. The &ldquo;System.<em>out</em>.println&rdquo; line contains parenthesis and a string of text within those parentheses. The string of text must be surrounded by quotation marks in order for the program to know that it has to print out text instead of an actual variable like &ldquo;x.&rdquo; The reason the user can&rsquo;t just say: &ldquo;System.<em>out</em>.println(<em>&ldquo;The number is: x</em>&rdquo;);&rdquo; is because the program won&rsquo;t know if x is a variable or not. The program reads anything within quotation marks as a piece of text instead of a container holding a value. Therefore, the x must be outside of the quotation marks. Then again, you can&rsquo;t say System.<em>out</em>.println(<em>&ldquo;The number is:</em><em>&nbsp;</em>&rdquo; x<em>&nbsp;</em>); because the program needs a specific keyword to know that the piece of text and the variable are two entities that need to be joined or &ldquo;concatenated&rdquo; together. The &ldquo;+&rdquo; symbol is used to show that the string of text and the variable &ldquo;x&rdquo; are to be connected together; this will allow the program to output &ldquo;The number is: 5&rdquo; (without the quotation marks). That is why the line is: &ldquo;System.<em>out</em>.println(<em>&ldquo;The number is:</em><em>&nbsp;</em>&rdquo; + x<em>&nbsp;</em>);&rdquo; <strong>Commenting:</strong> Commenting is the final fundamental concept to understand in a programming language. Although it is not necessary, it can greatly help you and other programmers around you if you ever forget how the program works. This concept is used by programmers as an opportunity to explain their code using common English. A compiler will always ignore comments, as they aren&rsquo;t actual code. They are simply explanations that were written to help people understand what was programmed. In order to write a comment, you must use &ldquo;//&rdquo; or &ldquo;/*&rdquo; and &ldquo;*/.&rdquo; The &ldquo;//&rdquo; symbol is used to comment on one line. For example, if you were to explain what a certain variable was going to be used for, you would do the following:</p>
<p style="padding-left: 30px;">int x = 5; // this variable is going to be used to find the total money</p>
<p>The compiler will ignore the commented line, but will process int x = 5. However, you can&rsquo;t use the &ldquo;//&rdquo; symbol with the following:</p>
<p style="padding-left: 30px;">int x = 5; // this variable is going to be used to find the total money</p>
<p>This is because the &ldquo;//&rdquo; symbol is only used for one line, and the comment is on two lines. You could do:</p>
<p style="padding-left: 30px;">int x = 5; // this variable is going to be used to find the total money</p>
<p>As long as the comment is one line, it is fine. Anything on the line after that symbol is considered a comment. The other technique does the same thing as &ldquo;//&rdquo; except it supports multi-line commenting. You must start the comment with &ldquo;/*&rdquo; and end it with &ldquo;*/.&rdquo; Example:</p>
<p style="padding-left: 30px;">int x = 5; /* this variable is going to be used to find the total money */</p>
<h2><span style="color: #000000;">Variables</span></h2>
<h3><span style="color: #000000;">What is a Variable?</span></h3>
<p>A<a href="https://tekslate.com/javascript-variables-data-types/" target="_blank"> variable</a> is essentially a storage unit that holds a certain type of data. It is named by the programmer and used to identify the data it stores. A variable can usually be accessed or changed at any time. You can write information to it, take information from it, and even copy the information to store in another variable.</p>
<h4><span style="color: #000000;">Variable Types</span></h4>
<p>In Java, a variable has a specific type that determines what size it is and the layout of its memory. The Java language defines three types of variables.</p>
<h4><strong><span style="color: #000000;">Instance Variables</span></strong></h4>
<p>Instance variables are declared within a class but accessed outside of any method, constructor, or block. Instance variables are created with the keyword &ldquo;new&rdquo; and are destroyed when the object is destroyed. An instance variable is visible to all methods, constructors, and blocks within the class where it is declared. By giving a variable the keyword &ldquo;public,&rdquo; it can be accessed by subclasses within the class. However, it is recommended to set a variable&rsquo;s access modifier to &ldquo;private&rdquo; when possible. All instance variables have a default value, unlike local variables, which do not have default values. Example:</p>
<pre style="padding-left: 30px;">public class Test
{
public int num; // integer named&nbsp;<u>num
</u>public void dog()
{
num = 3;
}
}</pre>
<p>In this example, we declare the integer &ldquo;num&rdquo; outside of any method, and can easily access it within any method that is inside of the class &ldquo;Test.&rdquo;</p>
<h4><strong><span style="color: #000000;">Class/Static Variables</span></strong></h4>
<p>Static variables are declared outside of any method, constructor, or block, and are declared with the keyword &ldquo;static.&rdquo; If a variable is static, only one instance of that variable will exist, regardless of how many instances of the object are called. Static variables are rarely used except for constant values, which are variables that never change. Example:</p>
<pre style="padding-left: 30px;">public class Test
{
public static final int&nbsp;<em>num</em>&nbsp;= 3; // integer named&nbsp;<u>num
</u>public void dog()
{
System.<em>out</em>.println(<em>num</em>);
}
}</pre>
<p>In this example, we declare an int called &ldquo;<em>num</em>&rdquo; and it set to be public, static, and final. This means that it can be accessed from within subclasses, only one instance of it can ever exist, and the value can never be changed.</p>
<h4><strong><span style="color: #000000;">Local Variables</span></strong></h4>
<p>Local variables are only declared within methods, blocks, or constructors. They are only created when the method, block, or constructor is created, and then they are destroyed as soon as the method ends. You can only access local variables within the method, block, or constructor where it is called; they are not visible outside of where they are called. Local variables do not have a default value. Example: public void cat(){ // method named cat int x = 0; //&nbsp;<u>int</u>&nbsp;with value of 0 } In this example, a variable named &ldquo;x&rdquo; is called within the method &ldquo;cat.&rdquo; That variable only exists within the context of cat, and it cannot be directly called or accessed outside of that method.</p>
<h3><span style="color: #000000;">Data Types</span></h3>
<p>Variables are used to store data. Java has multiple built-in data types that are used to store predefined types of data. These data types are called primitive data types, and are the most basic data types in the Java programming language. You can also create your own data types, which we will go over later. Java has eight primitive data types.</p>
<h4><strong><span style="color: #000000;">Byte</span></strong></h4>
<p>The byte data type is an 8-bit signed two&rsquo;s complement integer. It has a default value of zero when it is declared, a maximum value of 127, and a minimum value of -128. A byte is useful when you want to save memory space, especially in large arrays. Example</p>
<p style="padding-left: 30px;">byte b = 1; // has a value of one</p>
<h4><strong><span style="color: #000000;">Short</span></strong></h4>
<p>The short data type is a 16-bit signed two&rsquo;s complement integer. Its maximum range is 32,767 and its minimum value is -32,768. A short is used to save memory or to clarify your code. Example:</p>
<p style="padding-left: 30px;">short s = 1; // has a value of one</p>
<h3><strong><span style="color: #000000;">Int</span></strong></h3>
<p>The int data type is a 32-bit signed two&rsquo;s complement integer. Its maximum value is 2,147,483,647 (2<sup>31</sup>&nbsp;-1) and its minimum value is -2,147,483,648 (-2<sup>31</sup>). Int is the most commonly used data type for integral numbers, unless memory is a concern. Example:</p>
<p style="padding-left: 30px;">int i = 1; // has a value of one</p>
<h4><strong><span style="color: #000000;">Long</span></strong></h4>
<p>The long data type is a 64-bit signed two&rsquo;s complement integer. Its maximum value is 9,223,372,036,854,775,807 (2<sup>63</sup>&nbsp;-1) and its minimum value is -9,223,372,036,854,775,808 (-2<sup>63</sup>). This data type is used when a larger number is required than would be possible with an int. Example:</p>
<p style="padding-left: 30px;">long l = 1; // has a value of one</p>
<h4><strong><span style="color: #000000;">Float</span></strong></h4>
<p>The floating point data type is a double-precision 64-bit IEEE 754 floating point. The min and max range is too large to discuss here. A float is never used when precision is necessary, such as when dealing with currency. Example:</p>
<p style="padding-left: 30px;">float f = 1200.5f; //value of one thousand two hundred, and a half</p>
<h4><strong><span style="color: #000000;">Double</span></strong></h4>
<p>The double point data type is a double-precision 64-bit IEEE 754 floating point. It is often the data type of choice for decimal numbers. The min and max range is too large to discuss here. A float is never used when precision is necessary, such as when dealing with currency. Example:</p>
<p style="padding-left: 30px;">double d = 1200.5d; // value of one thousand two hundred, and a half</p>
<h4><strong><span style="color: #000000;">Boolean</span></strong></h4>
<p>A boolean data type represents one bit of data. It can contain two values: true or false. It is used for simple flags to track true or false conditions. Example:</p>
<p style="padding-left: 30px;">boolean b = true; // has a value of true</p>
<h4><strong><span style="color: #000000;">Char</span></strong></h4>
<p>The char data type is a single 16-bit Unicode character. Its minimum value is &ldquo;<em>/u0000</em>&rdquo; (or 0) and its maximum value is &ldquo;<em>/uffff</em>&rdquo; (or 65,535 inclusive) Example:</p>
<p style="padding-left: 30px;">char c = 'w'; // returns the letter "w"</p>
<h4><strong><span style="color: #000000;">String</span></strong></h4>
<p>Another commonly used data type is called String. String is not a primitive data type, but it is a very commonly used data type that stores collection of characters or text. Example:</p>
<p style="padding-left: 30px;">String cat = "meow"; // sets value of cat to "meow"</p>
<p>This example gets a String named &ldquo;cat&rdquo; and sets it to the string of characters that spell out &ldquo;meow.&rdquo;</p>
<h4><strong><span style="color: #000000;">Declaring a Variable</span></strong></h4>
<p>The declaration of a variable has three parts: the data type, variable name, and the stored value. Note that there is a specific convention and set of rules that are used when naming variables. A variable name can be any length of Unicode letters and numbers, but it must start with a letter, the dollar sign &ldquo;$,&rdquo; or an underscore &ldquo;_,&rdquo; or else it will return a syntax error. It is also common naming convention to start the name with a lowercase letter, followed by each subsequent word starting with a capital letter. For example, in the variable named &ldquo;theName,&rdquo; the first word &ldquo;the&rdquo; starts with a lowercase letter, and each following word, in this case &ldquo;Name,&rdquo; starts with a capital letter. Example:</p>
<p style="padding-left: 30px;">int theName = 123; // value of 123</p>
<p>In the example above, the data type is int and the name of the variable is the &nbsp;Name. The value stored inside that variable is 123. You can also declare a variable without storing a value in it. Example:</p>
<p style="padding-left: 30px;">int name; // no value</p>
<p>You can do this if you choose to declare it later.</p>
<h4><strong><span style="color: #000000;">Using a Variable</span></strong></h4>
<p>After a variable is declared, then you can read its value or change it. After the variable has been initially declared, you can only reference it by its name; you only need to declare its data type when you are declaring the variable. Example:</p>
<p style="padding-left: 30px;">name = 2; // sets the&nbsp;<u>int</u>&nbsp;"name" to a value of 2</p>
<p>The example above sets the value of name to 2. Notice how I never restated the data type. Example:</p>
<p style="padding-left: 30px;">System.<em>out</em>.println(name); // prints the value of name to the console</p>
<p>This example reads the value of &ldquo;name&rdquo; and writes it to the console. Variables can also be added together for example. Example:</p>
<pre style="padding-left: 30px;">int a; // no value
int b = 1; // value of one
int c = 2; // value of two
a =&nbsp;b&nbsp;+&nbsp;c; // sets a to the value of b + c</pre>
<p>In the example above, we set the value of a to equal the value of b and c added together. The addition sign is known as an operator, which we are going to learn about in the following section. It is also possible to a certain extent to combine values of variables that are different data types. Example:</p>
<pre style="padding-left: 30px;">int&nbsp;<u>a</u>; // no value
float b = 1; // value of one
int c = 2; // value of two
a = (int) (b + c); // sets the&nbsp;<u>int</u>&nbsp;"name" to a value of b + c</pre>
<p>This example is just like the one before, except we have changed the data type of b from int to float. The only difference when adding them together is that we had to include something called a &ldquo;cast&rdquo; in the equation. What a cast does is simply let the compiler know that the value of (b + c) should be of the data type int. Note that for this example, if the value of b + c were to equal a decimal number (for example 3.2), the value of a would not be 3.2 but rather 3, because int does not support decimals.</p>
<h4><strong><span style="color: #000000;">Assignment</span></strong></h4>
<p>Using what we have learned about variables, we can now create a simple calculator to add numbers together for us. The first thing we will want to do is declare three variables: one to store the value, one to represent the first number we want to add, and one to represent the second number we want to add. We will declare these variables as double so that we can add decimal numbers: double a = 0; // stores value of addition double b = 3.55; // first number to add double c = 52.6; // second number to add Next, we will simply set the value of a to equal the value of b and c combined, and then print out the value of a. a = b + c; System.<em>out</em>.println(a); If you run this program, it will print out 56.15. Now you have created a very simple calculator. I highly encourage you to play around with this and test things for yourself. Change the data type of the variables, add more numbers together, and experiment to understand how things work. Our design of course tutorials and interview questions is practical and informative. At TekSlate, we offer resources to help you learn various IT courses. We avail both written material and demo video tutorials. For in-depth knowledge and practical experience explore <a href="https://tekslate.com/core-java-training/" target="_blank">Online Java&nbsp;Training.</a></p>e:T6ed7,<p style="text-align: justify;">Welcome to the Java Tutorials. The objective of these tutorials is to provide in depth understand of java from basic questions like what is java tutorial, core java, where it is used, what type of applications are created in java and why use java.</p>
<p style="text-align: justify;">In addition to free Java Tutorials, you can find interview questions, how to tutorials and issues and their resolutions of Java.</p>
<h2><span style="color: #000000;">JAVA Introduction</span></h2>
<p>Java is a programming language that was created by James Gosling from Sun Microsystems (Sun) in 1991 and first made publicly available in 1995, after Sun Microsystems was inherited by Oracle. The platform was originally designed for interactive television, but it surpassed the technology and design of the digital cable television industry at the time. Today, Java remains an open-source programming language that falls under the GPL (General Public License) The language derives much of its syntax from C and C++, but lacks the power of those languages because it asks less of the user (less customization, more simplicity). For example, tasks such as garbage collection (the process of reducing memory being used by the program) are automated in Java. Five principles were used in the creation of the Java programming language:</p>
<ul style="list-style-type: disc;">
<li>It must be simple, object-oriented, and familiar</li>
<li>It must be robust and secure</li>
<li>It must be architecture-neutral and portable</li>
<li>It must execute with high performance</li>
<li>It must be interpreted, threaded, and dynamic</li>
</ul>
<p>Java was built as an exclusively object-oriented programming language&mdash;which doesn&rsquo;t mean much right now, but will later in this guide. For now, suffice it to say that object-oriented programming allows for the creation of efficient, organized, and powerful code. Simply put, Java is a multithreaded, object-oriented, platform-independent programming language. This means that Java programs can perform multiple tasks using object-oriented concepts that can work across all platforms and operating systems. It is the most important factor distinguishing Java from other languages. Java helps us to develop normal desktop applications, mobile applications, and web applications using separate packages such as the J2ME package for mobile application development and the J2EE package for web application development. In this guide, we are going to learn the basics of object-oriented concepts as they apply to Java programming. We have two different types of application development concepts in Java: console-based application and GUI application development. Let&rsquo;s see how to develop these types of applications using Java.</p>
<h2><span style="color: #000000;">What is Java?</span></h2>
<p>Java is a programming language that is supported by all devices, whether it is an Android phone, a Windows computer, or an Apple product. Java&rsquo;s flexibility has made it one of the most popular programming languages around the globe. Java can be used to create web applications, games, Windows applications, database systems, Android apps, and much more. Java&rsquo;s combined simplicity and power makes it different from other programming languages. Java is simple in that it doesn&rsquo;t expect too much from the user in terms of memory management or dealing with a vast and complex hive of intricate classes extending from each other. Although this doesn&rsquo;t make much sense right now, it will once we start learning about inheritance in Java. A Java program is run through a Java Virtual Machine (JVM), which is essentially a software implementation of an operating system that is used to execute Java programs. The compiler (process of converting code into readable instructions for the computer) analyzes the Java code and converts it into byte code, which then allows the computer to understand the instructions issued by the programmer and execute them in the appropriate manner. The distribution of the Java platform comes in two packages: the Java Runtime Environment (JRE) and the Java Development Kit (JDK). The JRE is essentially the Java Virtual Machine (JVM) that runs Java programs. The JDK, on the other hand, is a fully featured software development kit that includes the JRE, compilers, tools, etc. <img class="aligncenter wp-image-27747" title="Learn JAVA Tutorials Online" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/12/Screenshot_23.jpg" alt="Learn JAVA Tutorials Online" width="783" height="338" /> A casual user who only wants to run Java programs on their machine would only need to install the JRE, as it contains the JVM that allows Java programs to be executed. However, a <a href="https://tekslate.com/functions-javascript/" target="_blank">Java&nbsp;<em>programmer</em></a>&nbsp;must download the JDK. We will explore these concepts in greater detail in the next part. As previously stated, Java programming creates an object-oriented and platform-independent program because the Java compiler creates a .class file instead of an .exe file. This .class file is an intermediate file that has byte code, and this is the reason why Java programs are platform independent. However, there are also disadvantages: Java programs take more time to complete their execution because the .class file must first load in the JVM before they are able to run in the OS. We can develop all kinds of applications using Java, but we need to use separate packages for separate application developments. For example, if you want develop a desktop application, then you need to use JDK; if you want to develop an Android application, then you need to use Android SDK, because they have different sets of classes.</p>
<h3><span style="color: #000000;">Java Language Structure</span></h3>
<p>We will now use this sample code as an example to start the Java learning process. This code should make it easy to understand the basic structure of a Java program.</p>
<pre style="padding-left: 30px;"><u>i</u>mport java.util.Scanner;
public class&nbsp;<u>ThisIsAClass</u>&nbsp;{
public static void main (String args[]) {
int x = 5;
System.<em>out</em>.println(x);
}
}</pre>
<p>The first line import java.util.Scanner; it is using the special keyword <u>i</u>mport, which allows the programmer to import tools in the Java library that aren&rsquo;t included by default when starting a new class. After the keyword&nbsp;<u>i</u>mport, the programmer specifies a specific directory within the Java library for the Scanner tool by typing out: java.util.Scanner, which first accesses the Java library in the Utilities directory before accessing the specific tool needed, which in this case is &ldquo;Scanner.&rdquo; By default, when starting a Java class, only the bare minimum tools and functions from the Java library that are needed for any basic program will be provided. For example, you don&rsquo;t need to import packages for a simple program. If the programmer wants to use more than just the basic functionalities, they must use the &ldquo;Import&rdquo; keyword to give themselves more tools to work with. You will also start to notice that there is a semicolon &ldquo;;&rdquo; after each statement. This semicolon functions as a period does for an English sentence. When the compiler is going through the program to prepare it for its execution, it will check for semicolons, so it knows where a specific statement ends and a new one starts. The next thing you&rsquo;ll notice in the sample code is: public class ThisIsAClass. There are three elements to this line that are very important to understand. public&mdash;Defines the scope of the class and whether or not other classes have access to the class. This may not make sense now, but you will gain a better understanding of what this means when we learn about &ldquo;Inheritance and Polymorphism.&rdquo; class&mdash;A class can be thought of as a &ldquo;section&rdquo; of code. For example:</p>
<p style="padding-left: 30px;">Section {everything here is the content of the section}</p>
<p>Again, you will gain a better understanding of how classes can be useful when we learn about Inheritance and Polymorphism. ThisIsAClass&mdash;This third and final element of this important line is &ldquo;ThisIsAClass,&rdquo; which is simply a custom name that the user can define. You can call this anything, as all it does is give the &ldquo;Section&rdquo; or &ldquo;Class&rdquo; a name.</p>
<pre style="padding-left: 30px;">Section:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
 &nbsp;&nbsp; Essay/Contents
}
 In code, it would be presented:
Class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ThisIsAClass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
 Code
}

</pre>
<p>Another thing you may be scratching your head over are the curly braces: &ldquo;{&rdquo; and &ldquo;}.&rdquo; All that these characters do is tell the compiler where a specific section starts and ends. In English, this could be thought of as starting a sentence with a capital letter or indenting a new paragraph. One thing to note is that the spacing in code does not affect whether or not it works. However, it is conventional and efficient to write properly spaced code so that you and other programmers can read and understand it more easily. You will learn how to space as you read more sample code. Eventually, you will start to notice trends in how conventional spacing works in programming.</p>
<pre style="padding-left: 30px;">public static void main (String args[])&nbsp;<u>{
</u>int x = 5;
System.out.println(&ldquo;The number is&rdquo; + x);
<u>}
</u>}</pre>
<p>As shown in the above sample code, two curly braces are set in bold to indicate that they communicate with each other. Whatever is written between them is the &ldquo;Section&rdquo; or &ldquo;Class&rdquo; of name &ldquo;ThisIsAClass.&rdquo; The sample applies to the bold and underlined curly braces to indicate that they are separate section dividers for the section within the parent section. The parent section is again considered a class, whereas the section within the parent section is considered a sub-section, or a subclass, or the formal term, a method. A method is essentially a subclass that also has its own special elements, similar to a class but more specific. This contains four elements: a scope (public/private/protected), a return type, a name, and parameters. The scope, return type, and parameters are things you will understand better when we learn about Methods, along with Inheritance and Polymorphism.</p>
<ul>
<li style="padding-left: 30px;">public&mdash;Scope.</li>
<li style="padding-left: 30px;">static&mdash;Conventional keyword for the main method.</li>
<li style="padding-left: 30px;">void&mdash;Return type.</li>
<li style="padding-left: 30px;">main&mdash;Name of the method (you can call this anything, but in this case, the main method must always exist in every Java program because it is the starting point of the Java program).</li>
</ul>
<p>This method is a special method because it is named &ldquo;main&rdquo; and so it will be the first method that is called. The compiler always looks for the method named &ldquo;main&rdquo; at the process start. The main method must hold the following properties: &ldquo;public static void&rdquo; and have &ldquo;String args[]&rdquo; as the argument in the parameters. There can only be one main method in a Java project. The idea of the main method is that it will be the first method to be called, and so you can think of it as the home base for calling other methods and traveling to other classes (you will learn what this means later). For the remainder of this guide, your program must be written within this main method, as it is a special method that the compiler will always be looking for. The contents of this method will also be introduced when learning about &ldquo;Variables&rdquo; later on in this guide. For now, this brief explanation should be enough for you to understand what is going on: int x = 5;&mdash;A variable is being declared (a container) that is a type of integer (whole number), and it holds the value of five. The &ldquo;=&rdquo; is used to assign values to variables. System.out.println&mdash;This is a classic line that every beginner learns; all it does is print a line of text to the console. Example <img class="aligncenter wp-image-27734" title="JAVA Tutorials" src="https://newtekslateassets.s3.us-west-2.amazonaws.com/wp-content/uploads/2016/12/Screenshot_999.jpg" alt="JAVA Tutorials" width="719" height="337" /> The console is where the program&rsquo;s output is placed in order for the programmer to test his or her program. The &ldquo;System.<em>out</em>.println&rdquo; line contains parenthesis and a string of text within those parentheses. The string of text must be surrounded by quotation marks in order for the program to know that it has to print out text instead of an actual variable like &ldquo;x.&rdquo; The reason the user can&rsquo;t just say: &ldquo;System.<em>out</em>.println(<em>&ldquo;The number is: x</em>&rdquo;);&rdquo; is because the program won&rsquo;t know if x is a variable or not. The program reads anything within quotation marks as a piece of text instead of a container holding a value. Therefore, the x must be outside of the quotation marks. Then again, you can&rsquo;t say System.<em>out</em>.println(<em>&ldquo;The number is:</em><em>&nbsp;</em>&rdquo; x<em>&nbsp;</em>); because the program needs a specific keyword to know that the piece of text and the variable are two entities that need to be joined or &ldquo;concatenated&rdquo; together. The &ldquo;+&rdquo; symbol is used to show that the string of text and the variable &ldquo;x&rdquo; are to be connected together; this will allow the program to output &ldquo;The number is: 5&rdquo; (without the quotation marks). That is why the line is: &ldquo;System.<em>out</em>.println(<em>&ldquo;The number is:</em><em>&nbsp;</em>&rdquo; + x<em>&nbsp;</em>);&rdquo; <strong>Commenting:</strong> Commenting is the final fundamental concept to understand in a programming language. Although it is not necessary, it can greatly help you and other programmers around you if you ever forget how the program works. This concept is used by programmers as an opportunity to explain their code using common English. A compiler will always ignore comments, as they aren&rsquo;t actual code. They are simply explanations that were written to help people understand what was programmed. In order to write a comment, you must use &ldquo;//&rdquo; or &ldquo;/*&rdquo; and &ldquo;*/.&rdquo; The &ldquo;//&rdquo; symbol is used to comment on one line. For example, if you were to explain what a certain variable was going to be used for, you would do the following:</p>
<p style="padding-left: 30px;">int x = 5; // this variable is going to be used to find the total money</p>
<p>The compiler will ignore the commented line, but will process int x = 5. However, you can&rsquo;t use the &ldquo;//&rdquo; symbol with the following:</p>
<p style="padding-left: 30px;">int x = 5; // this variable is going to be used to find the total money</p>
<p>This is because the &ldquo;//&rdquo; symbol is only used for one line, and the comment is on two lines. You could do:</p>
<p style="padding-left: 30px;">int x = 5; // this variable is going to be used to find the total money</p>
<p>As long as the comment is one line, it is fine. Anything on the line after that symbol is considered a comment. The other technique does the same thing as &ldquo;//&rdquo; except it supports multi-line commenting. You must start the comment with &ldquo;/*&rdquo; and end it with &ldquo;*/.&rdquo; Example:</p>
<p style="padding-left: 30px;">int x = 5; /* this variable is going to be used to find the total money */</p>
<h2><span style="color: #000000;">Variables</span></h2>
<h3><span style="color: #000000;">What is a Variable?</span></h3>
<p>A<a href="https://tekslate.com/javascript-variables-data-types/" target="_blank"> variable</a> is essentially a storage unit that holds a certain type of data. It is named by the programmer and used to identify the data it stores. A variable can usually be accessed or changed at any time. You can write information to it, take information from it, and even copy the information to store in another variable.</p>
<h4><span style="color: #000000;">Variable Types</span></h4>
<p>In Java, a variable has a specific type that determines what size it is and the layout of its memory. The Java language defines three types of variables.</p>
<h4><strong><span style="color: #000000;">Instance Variables</span></strong></h4>
<p>Instance variables are declared within a class but accessed outside of any method, constructor, or block. Instance variables are created with the keyword &ldquo;new&rdquo; and are destroyed when the object is destroyed. An instance variable is visible to all methods, constructors, and blocks within the class where it is declared. By giving a variable the keyword &ldquo;public,&rdquo; it can be accessed by subclasses within the class. However, it is recommended to set a variable&rsquo;s access modifier to &ldquo;private&rdquo; when possible. All instance variables have a default value, unlike local variables, which do not have default values. Example:</p>
<pre style="padding-left: 30px;">public class Test
{
public int num; // integer named&nbsp;<u>num
</u>public void dog()
{
num = 3;
}
}</pre>
<p>In this example, we declare the integer &ldquo;num&rdquo; outside of any method, and can easily access it within any method that is inside of the class &ldquo;Test.&rdquo;</p>
<h4><strong><span style="color: #000000;">Class/Static Variables</span></strong></h4>
<p>Static variables are declared outside of any method, constructor, or block, and are declared with the keyword &ldquo;static.&rdquo; If a variable is static, only one instance of that variable will exist, regardless of how many instances of the object are called. Static variables are rarely used except for constant values, which are variables that never change. Example:</p>
<pre style="padding-left: 30px;">public class Test
{
public static final int&nbsp;<em>num</em>&nbsp;= 3; // integer named&nbsp;<u>num
</u>public void dog()
{
System.<em>out</em>.println(<em>num</em>);
}
}</pre>
<p>In this example, we declare an int called &ldquo;<em>num</em>&rdquo; and it set to be public, static, and final. This means that it can be accessed from within subclasses, only one instance of it can ever exist, and the value can never be changed.</p>
<h4><strong><span style="color: #000000;">Local Variables</span></strong></h4>
<p>Local variables are only declared within methods, blocks, or constructors. They are only created when the method, block, or constructor is created, and then they are destroyed as soon as the method ends. You can only access local variables within the method, block, or constructor where it is called; they are not visible outside of where they are called. Local variables do not have a default value. Example: public void cat(){ // method named cat int x = 0; //&nbsp;<u>int</u>&nbsp;with value of 0 } In this example, a variable named &ldquo;x&rdquo; is called within the method &ldquo;cat.&rdquo; That variable only exists within the context of cat, and it cannot be directly called or accessed outside of that method.</p>
<h3><span style="color: #000000;">Data Types</span></h3>
<p>Variables are used to store data. Java has multiple built-in data types that are used to store predefined types of data. These data types are called primitive data types, and are the most basic data types in the Java programming language. You can also create your own data types, which we will go over later. Java has eight primitive data types.</p>
<h4><strong><span style="color: #000000;">Byte</span></strong></h4>
<p>The byte data type is an 8-bit signed two&rsquo;s complement integer. It has a default value of zero when it is declared, a maximum value of 127, and a minimum value of -128. A byte is useful when you want to save memory space, especially in large arrays. Example</p>
<p style="padding-left: 30px;">byte b = 1; // has a value of one</p>
<h4><strong><span style="color: #000000;">Short</span></strong></h4>
<p>The short data type is a 16-bit signed two&rsquo;s complement integer. Its maximum range is 32,767 and its minimum value is -32,768. A short is used to save memory or to clarify your code. Example:</p>
<p style="padding-left: 30px;">short s = 1; // has a value of one</p>
<h3><strong><span style="color: #000000;">Int</span></strong></h3>
<p>The int data type is a 32-bit signed two&rsquo;s complement integer. Its maximum value is 2,147,483,647 (2<sup>31</sup>&nbsp;-1) and its minimum value is -2,147,483,648 (-2<sup>31</sup>). Int is the most commonly used data type for integral numbers, unless memory is a concern. Example:</p>
<p style="padding-left: 30px;">int i = 1; // has a value of one</p>
<h4><strong><span style="color: #000000;">Long</span></strong></h4>
<p>The long data type is a 64-bit signed two&rsquo;s complement integer. Its maximum value is 9,223,372,036,854,775,807 (2<sup>63</sup>&nbsp;-1) and its minimum value is -9,223,372,036,854,775,808 (-2<sup>63</sup>). This data type is used when a larger number is required than would be possible with an int. Example:</p>
<p style="padding-left: 30px;">long l = 1; // has a value of one</p>
<h4><strong><span style="color: #000000;">Float</span></strong></h4>
<p>The floating point data type is a double-precision 64-bit IEEE 754 floating point. The min and max range is too large to discuss here. A float is never used when precision is necessary, such as when dealing with currency. Example:</p>
<p style="padding-left: 30px;">float f = 1200.5f; //value of one thousand two hundred, and a half</p>
<h4><strong><span style="color: #000000;">Double</span></strong></h4>
<p>The double point data type is a double-precision 64-bit IEEE 754 floating point. It is often the data type of choice for decimal numbers. The min and max range is too large to discuss here. A float is never used when precision is necessary, such as when dealing with currency. Example:</p>
<p style="padding-left: 30px;">double d = 1200.5d; // value of one thousand two hundred, and a half</p>
<h4><strong><span style="color: #000000;">Boolean</span></strong></h4>
<p>A boolean data type represents one bit of data. It can contain two values: true or false. It is used for simple flags to track true or false conditions. Example:</p>
<p style="padding-left: 30px;">boolean b = true; // has a value of true</p>
<h4><strong><span style="color: #000000;">Char</span></strong></h4>
<p>The char data type is a single 16-bit Unicode character. Its minimum value is &ldquo;<em>/u0000</em>&rdquo; (or 0) and its maximum value is &ldquo;<em>/uffff</em>&rdquo; (or 65,535 inclusive) Example:</p>
<p style="padding-left: 30px;">char c = 'w'; // returns the letter "w"</p>
<h4><strong><span style="color: #000000;">String</span></strong></h4>
<p>Another commonly used data type is called String. String is not a primitive data type, but it is a very commonly used data type that stores collection of characters or text. Example:</p>
<p style="padding-left: 30px;">String cat = "meow"; // sets value of cat to "meow"</p>
<p>This example gets a String named &ldquo;cat&rdquo; and sets it to the string of characters that spell out &ldquo;meow.&rdquo;</p>
<h4><strong><span style="color: #000000;">Declaring a Variable</span></strong></h4>
<p>The declaration of a variable has three parts: the data type, variable name, and the stored value. Note that there is a specific convention and set of rules that are used when naming variables. A variable name can be any length of Unicode letters and numbers, but it must start with a letter, the dollar sign &ldquo;$,&rdquo; or an underscore &ldquo;_,&rdquo; or else it will return a syntax error. It is also common naming convention to start the name with a lowercase letter, followed by each subsequent word starting with a capital letter. For example, in the variable named &ldquo;theName,&rdquo; the first word &ldquo;the&rdquo; starts with a lowercase letter, and each following word, in this case &ldquo;Name,&rdquo; starts with a capital letter. Example:</p>
<p style="padding-left: 30px;">int theName = 123; // value of 123</p>
<p>In the example above, the data type is int and the name of the variable is the &nbsp;Name. The value stored inside that variable is 123. You can also declare a variable without storing a value in it. Example:</p>
<p style="padding-left: 30px;">int name; // no value</p>
<p>You can do this if you choose to declare it later.</p>
<h4><strong><span style="color: #000000;">Using a Variable</span></strong></h4>
<p>After a variable is declared, then you can read its value or change it. After the variable has been initially declared, you can only reference it by its name; you only need to declare its data type when you are declaring the variable. Example:</p>
<p style="padding-left: 30px;">name = 2; // sets the&nbsp;<u>int</u>&nbsp;"name" to a value of 2</p>
<p>The example above sets the value of name to 2. Notice how I never restated the data type. Example:</p>
<p style="padding-left: 30px;">System.<em>out</em>.println(name); // prints the value of name to the console</p>
<p>This example reads the value of &ldquo;name&rdquo; and writes it to the console. Variables can also be added together for example. Example:</p>
<pre style="padding-left: 30px;">int a; // no value
int b = 1; // value of one
int c = 2; // value of two
a =&nbsp;b&nbsp;+&nbsp;c; // sets a to the value of b + c</pre>
<p>In the example above, we set the value of a to equal the value of b and c added together. The addition sign is known as an operator, which we are going to learn about in the following section. It is also possible to a certain extent to combine values of variables that are different data types. Example:</p>
<pre style="padding-left: 30px;">int&nbsp;<u>a</u>; // no value
float b = 1; // value of one
int c = 2; // value of two
a = (int) (b + c); // sets the&nbsp;<u>int</u>&nbsp;"name" to a value of b + c</pre>
<p>This example is just like the one before, except we have changed the data type of b from int to float. The only difference when adding them together is that we had to include something called a &ldquo;cast&rdquo; in the equation. What a cast does is simply let the compiler know that the value of (b + c) should be of the data type int. Note that for this example, if the value of b + c were to equal a decimal number (for example 3.2), the value of a would not be 3.2 but rather 3, because int does not support decimals.</p>
<h4><strong><span style="color: #000000;">Assignment</span></strong></h4>
<p>Using what we have learned about variables, we can now create a simple calculator to add numbers together for us. The first thing we will want to do is declare three variables: one to store the value, one to represent the first number we want to add, and one to represent the second number we want to add. We will declare these variables as double so that we can add decimal numbers: double a = 0; // stores value of addition double b = 3.55; // first number to add double c = 52.6; // second number to add Next, we will simply set the value of a to equal the value of b and c combined, and then print out the value of a. a = b + c; System.<em>out</em>.println(a); If you run this program, it will print out 56.15. Now you have created a very simple calculator. I highly encourage you to play around with this and test things for yourself. Change the data type of the variables, add more numbers together, and experiment to understand how things work. Our design of course tutorials and interview questions is practical and informative. At TekSlate, we offer resources to help you learn various IT courses. We avail both written material and demo video tutorials. For in-depth knowledge and practical experience explore <a href="https://tekslate.com/core-java-training/" target="_blank">Online Java&nbsp;Training.</a></p>f:{"id":1,"author_designation":"Content Writer","author_name":"TekSlate","author_bio":"<p>TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.</p>","author_img":"https://tekslateassets.s3.amazonaws.com/images/logo.svg","author_url":"tekslate","article_count":"0","field_of_intrest":"","status":1}
11:{"id":41,"views":3251,"rating":4.4,"title":"JSF Tutorial","url_title":"jsf-tutorials"}
12:{"id":93,"views":1088,"rating":4.3,"title":"Advanced Java Tutorial","url_title":"advanced-java-tutorials"}
13:{"id":103,"views":443,"rating":4,"title":"Core Java Tutorial","url_title":"core-java-tutorials"}
14:{"id":150,"views":0,"rating":4,"title":"JAVA Tutorials","url_title":"java-tutorials"}
15:{"id":174,"views":653,"rating":4.4,"title":"Data Structures Interview Questions","url_title":"data-structures-interview-questions-answers"}
16:{"id":181,"views":615,"rating":4,"title":"JSF Interview Questions & Answers","url_title":"jsf-interview-questions-answers"}
17:{"id":192,"views":0,"rating":4,"title":"Advanced Java Interview Questions & Answers","url_title":"advanced-java-interview-questions-answers"}
18:{"id":277,"views":5897,"rating":4.7,"title":"Advanced Java Interview Questions","url_title":"advanced-java-interview-questions"}
19:{"id":318,"views":542,"rating":4,"title":"Core Java Interview Questions","url_title":"core-java-interview-questions"}
1a:{"id":477,"views":946,"rating":4,"title":"JSF Interview Questions And Answers","url_title":"jsf-interview-questions-and-answers"}
1b:{"id":492,"views":798,"rating":4,"title":"Data Structures Interview Questions","url_title":"interview-questions-on-data-structures"}
1c:{"id":1181,"views":549,"rating":4,"title":"History of MVC Architecture","url_title":"history-mvc-architecture"}
1d:{"id":1248,"views":1324,"rating":4.1,"title":"Linear Queues in Data Structures","url_title":"linear-queues-in-data-structures"}
1e:{"id":1249,"views":948,"rating":4,"title":"Circular Queue in Data Structures","url_title":"circular-queue-in-data-structures"}
1f:{"id":1250,"views":710,"rating":4.2,"title":"Postfix expression in Data Structures","url_title":"postfix-expression-in-data-structures"}
20:{"id":1251,"views":607,"rating":4,"title":"Linear search in Data Structures","url_title":"linear-search-in-data-structures"}
21:{"id":1254,"views":1079,"rating":4,"title":"Selection sort in Data Structures","url_title":"selection-sort-in-data-structures"}
22:{"id":1255,"views":963,"rating":4,"title":"Insertion sort in Data Structures","url_title":"insertion-sort-in-data-structures"}
23:{"id":1256,"views":488,"rating":4,"title":"Quick sort in Data Structures","url_title":"quick-sort-in-data-structures"}
24:{"id":1257,"views":441,"rating":4,"title":"Heap Sort in Data Structures","url_title":"heap-sort-in-data-structures"}
25:{"id":1258,"views":640,"rating":4,"title":"Linked List in Data Structures","url_title":"linked-list-in-data-structures"}
26:{"id":1259,"views":787,"rating":4,"title":"Circular linked list in Data Structures","url_title":"circular-linked-list-in-data-structures"}
27:{"id":1260,"views":927,"rating":4,"title":"Doubly Linked List in Data Structures","url_title":"doubly-linked-list-in-data-structures"}
28:{"id":1261,"views":0,"rating":4,"title":"Stack using Linked List in Data Structures","url_title":"stack-using-linked-list-in-data-structures"}
29:{"id":1262,"views":1064,"rating":4,"title":"Queues using Linked list in Data Structures","url_title":"queues-using-linked-list-data-structures"}
2a:{"id":1263,"views":0,"rating":4,"title":"TREES in Data Structures","url_title":"trees-in-data-structures"}
2b:{"id":1264,"views":1077,"rating":4,"title":"Binary Trees in Data Structures","url_title":"binary-trees-in-data-structures"}
2c:{"id":1265,"views":287,"rating":4,"title":"Binary search tree in Data Structures","url_title":"binary-search-tree-in-data-structures"}
2d:{"id":1266,"views":1074,"rating":4,"title":"AVL Trees in Data Structures","url_title":"avl-trees-in-data-structures"}
2e:{"id":1267,"views":452,"rating":4,"title":"B Trees in Data Structures","url_title":"b-trees-in-data-structures"}
2f:{"id":1268,"views":916,"rating":4,"title":"Graphs in Data Structures","url_title":"graphs-in-data-structures"}
30:{"id":1723,"views":979,"rating":4,"title":"Introduction to JSF","url_title":"introduction-jsf"}
31:{"id":1724,"views":122,"rating":4,"title":"MVC Rules and Regulation in JSF","url_title":"mvc-rules-regulation-jsf"}
32:{"id":1725,"views":544,"rating":4,"title":"Enterprise Application in JSF","url_title":"enterprise-application-jsf"}
33:{"id":1726,"views":276,"rating":4,"title":"FrameWorks in JSF","url_title":"frameworks-jsf"}
34:{"id":1727,"views":638,"rating":4,"title":"JSF Elements","url_title":"jsf-elements"}
35:{"id":1728,"views":282,"rating":4,"title":"Creation and working with First Servlet in JSF","url_title":"creation-working-first-servlet-jsf"}
36:{"id":1729,"views":387,"rating":4,"title":"STEPS TO DESIGN FIRST APPLICATION in JSF","url_title":"steps-design-first-application-jsf"}
37:{"id":1730,"views":991,"rating":4,"title":"Developing Registration Application in JSF","url_title":"developing-registration-application-jsf"}
38:{"id":1731,"views":722,"rating":4,"title":"STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE","url_title":"steps-design-jsf-1-2-application-eclipse-ide"}
39:{"id":1732,"views":539,"rating":4,"title":"DIFFERENCE BET N JSF1.X &JSF 2.X","url_title":"difference-bet-n-jsf1-x-jsf-2-x"}
3a:{"id":1733,"views":430,"rating":4,"title":"Steps to use Hyperlinks in JSF pages","url_title":"steps-use-hyperlinks-jsf-pages"}
3b:{"id":1734,"views":435,"rating":4,"title":"Introduction to I18N Applications in JSF","url_title":"introduction-i18n-applications-jsf"}
3c:{"id":1735,"views":782,"rating":4.2,"title":"Developing I18N Applications in JSF","url_title":"developing-i18n-applications-jsf"}
3d:{"id":1736,"views":526,"rating":4,"title":"steps to provide I18N Support in JSF Application","url_title":"steps-provide-i18n-support-jsf-application"}
3e:{"id":1737,"views":187,"rating":4,"title":"VALIDATIONS in JSF","url_title":"validations-jsf"}
3f:{"id":1739,"views":570,"rating":4,"title":"JSF2 Validations Application","url_title":"jsf2-validations-application"}
40:{"id":1740,"views":1021,"rating":4,"title":"Developing JSF2 Validations Application","url_title":"developing-jsf2-validations-application"}
41:{"id":1741,"views":327,"rating":4,"title":"CONVERTERS IN JSF","url_title":"converters-jsf"}
42:{"id":1742,"views":450,"rating":4,"title":"Basic GUI Components in JSF","url_title":"basic-gui-components-jsf"}
43:{"id":1743,"views":0,"rating":4,"title":"Event Handler Event handling in JSF","url_title":"event-handler-event-handling-jsf"}
44:{"id":1744,"views":454,"rating":4,"title":"Layouts in JSF- Tiles","url_title":"layouts-jsf-tiles"}
45:{"id":1960,"views":0,"rating":4,"title":"Java Virtual Machine","url_title":"java-virtual-machine-java"}
46:{"id":1961,"views":0,"rating":4,"title":"Interface in Java","url_title":"java-interface-in-java"}
47:{"id":1962,"views":0,"rating":4,"title":"Exception Handling in java","url_title":"exception-handling-in-java"}
48:{"id":1963,"views":0,"rating":4,"title":"Multithreading in java","url_title":"java-multithreading-in-java"}
49:{"id":1967,"views":0,"rating":4,"title":"Polymorphism in Java","url_title":"polymorphism-in-java"}
4a:{"id":1968,"views":0,"rating":4,"title":"Inheritance in Java","url_title":"java-inheritance-in-java"}
4b:{"id":1969,"views":0,"rating":4,"title":"Constructors in Java","url_title":"java-constructors-in-java"}
4c:{"id":1970,"views":0,"rating":4,"title":"Java Annotations","url_title":"java-annotations-in-java"}
4d:{"id":1971,"views":0,"rating":4,"title":"Encapsulation in java","url_title":"java-encapsulation-in-java"}
4e:{"id":1972,"views":0,"rating":4,"title":"Packages in java","url_title":"packages-in-java"}
4f:{"id":1973,"views":0,"rating":4,"title":"Java Regular Expressions","url_title":"java-regular-expressions-in-java"}
50:{"id":1974,"views":0,"rating":4,"title":"Arraylist in Java","url_title":"java-arraylist-in-java"}
51:{"id":2008,"views":1006,"rating":4,"title":"Advanced Java Resume","url_title":"advanced-java-resume"}
52:{"id":2047,"views":579,"rating":4,"title":"Core Java Resume","url_title":"core-java-resume"}
53:{"id":2125,"views":1456,"rating":4.2,"title":"Java Stream Tutorial","url_title":"java-stream-tutorial"}
54:{"id":2126,"views":541,"rating":4.3,"title":"Java Swing Tutorial","url_title":"java-swing-tutorial"}
10:["$11","$12","$13","$14","$15","$16","$17","$18","$19","$1a","$1b","$1c","$1d","$1e","$1f","$20","$21","$22","$23","$24","$25","$26","$27","$28","$29","$2a","$2b","$2c","$2d","$2e","$2f","$30","$31","$32","$33","$34","$35","$36","$37","$38","$39","$3a","$3b","$3c","$3d","$3e","$3f","$40","$41","$42","$43","$44","$45","$46","$47","$48","$49","$4a","$4b","$4c","$4d","$4e","$4f","$50","$51","$52","$53","$54"]
56:{"id":4,"blog_id":416,"blog_title":"Embedded Systems Interview Questions","blog_url_title":"interview-questions-on-embedded-systems","order_value":5,"views":1547}
57:{"id":5,"blog_id":1237,"blog_title":"Types of Pointers in C","blog_url_title":"explain-different-types-pointers-c-language","order_value":6,"views":14352}
58:{"id":6,"blog_id":391,"blog_title":"Oracle Procure To Pay Interview Questions","blog_url_title":"interview-questions-on-oracle-procure-to-pay","order_value":1,"views":4352}
59:{"id":7,"blog_id":1216,"blog_title":"Characteristics of C Language","blog_url_title":"characteristics-of-c-language","order_value":2,"views":10834}
5a:{"id":8,"blog_id":939,"blog_title":"Salesforce Sample Triggers with different Scenarios","blog_url_title":"15-sample-triggers-different-scenarios","order_value":3,"views":11712}
5b:{"id":9,"blog_id":344,"blog_title":"Oracle Financials Interview Questions","blog_url_title":"oracle-financials-interview-questions-and-answers","order_value":4,"views":9437}
5c:{"id":10,"blog_id":441,"blog_title":"Service Desk Analyst Interview Questions","blog_url_title":"interview-questions-on-service-desk-analyst","order_value":7,"views":5421}
5d:{"id":11,"blog_id":381,"blog_title":"SAP OOPS ABAP Interview Questions","blog_url_title":"interview-questions-on-sap-oops-abap","order_value":8,"views":5421}
5e:{"id":12,"blog_id":380,"blog_title":"SAP Adobe Forms Interview Questions","blog_url_title":"interview-questions-on-sap-adobe-forms","order_value":9,"views":1875}
5f:{"id":13,"blog_id":2079,"blog_title":"Power Apps Interview Questions","blog_url_title":"powerapps-interview-questions","order_value":10,"views":7541}
55:["$56","$57","$58","$59","$5a","$5b","$5c","$5d","$5e","$5f"]
61:{"id":2,"course":"Core Java Training","rating":"4.8","enrolled":"5703","url_title":"core-java-training"}
62:{"id":10,"course":"Python Training","rating":"4.9","enrolled":"4549","url_title":"python-training"}
63:{"id":44,"course":"Node JS Training","rating":"4.8","enrolled":"2852","url_title":"node-js-training"}
64:{"id":65,"course":"LabVIEW Training","rating":"4.8","enrolled":"96","url_title":"labview-training"}
65:{"id":70,"course":"Mean Stack Training","rating":"4.5","enrolled":"2491","url_title":"mean-stack-training"}
66:{"id":72,"course":"Microservices Training","rating":"4.5","enrolled":"2543 ","url_title":"microservices-training"}
67:{"id":78,"course":"Ruby on Rails Training","rating":"4.8","enrolled":"1254","url_title":"ruby-rails-training"}
68:{"id":98,"course":"Oracle Apex Training","rating":"4.7","enrolled":"945","url_title":"oracle-apex-training"}
69:{"id":99,"course":"Oracle OAF Training","rating":"4.9","enrolled":"4322","url_title":"oracle-oaf-training"}
6a:{"id":160,"course":"Java Spring Training","rating":"4.7","enrolled":"1943","url_title":"java-spring-training"}
6b:{"id":187,"course":"ReactJS Training","rating":"4.4","enrolled":"138","url_title":"reactjs-training"}
6c:{"id":229,"course":"Advanced Java Training","rating":"4.5","enrolled":"120","url_title":"advanced-java-training"}
6d:{"id":231,"course":".Net Training","rating":"4.1","enrolled":"120","url_title":"net-training"}
6e:{"id":236,"course":"Android Development Training","rating":"4.7","enrolled":"1562","url_title":"android-development-training"}
6f:{"id":245,"course":"JavaScript Training","rating":"4.8","enrolled":"5789","url_title":"javascript-training"}
60:["$61","$62","$63","$64","$65","$66","$67","$68","$69","$6a","$6b","$6c","$6d","$6e","$6f"]
70:{"id":689,"name":"JAVA Tutorials","slug":"java-tutorials","type":"articles","status":1}
d:{"id":150,"blog_category":174,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$e","title":"JAVA Tutorials","url_title":"java-tutorials","image_url":"","meta_title":"Learn Java Tutorials Online With Examples | Learn Online","meta_desc":"Java tutorials gives enough knowledge to get up and run with real world application development and object-oriented programming using the Java Language.","views":0,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"2","created_at":"2016-12-14T06:47:26.000Z","updated_at":"2017-12-20T10:11:23.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0,"author_details":"$f","related_blogs":"$10","recommended_articles":"$55","recommended_programs":"$60","category_name":"Core Java","category_url":"core-java","type_d":"$70"}
2:["$","$Lb",null,{"rohit":{"trending":{"id":150,"blog_category":174,"blog_type":1,"wp_id":1,"excerpt":null,"table_of_content":null,"description":"$c","title":"JAVA Tutorials","url_title":"java-tutorials","image_url":"","meta_title":"Learn Java Tutorials Online With Examples | Learn Online","meta_desc":"Java tutorials gives enough knowledge to get up and run with real world application development and object-oriented programming using the Java Language.","views":0,"rating":4,"author":"1","top_level_cat_id":"4","author_desc":"","course_id":"2","created_at":"2016-12-14T06:47:26.000Z","updated_at":"2017-12-20T10:11:23.000Z","status":1,"video_schema_name":null,"video_schema_upload_date":null,"video_schema_description":null,"faq_schema_q1":null,"faq_schema_a1":null,"faq_schema_q2":null,"faq_schema_a2":null,"faq_schema_q3":null,"faq_schema_a3":null,"like_counter":0,"author_details":{"id":1,"author_designation":"Content Writer","author_name":"TekSlate","author_bio":"<p>TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.</p>","author_img":"https://tekslateassets.s3.amazonaws.com/images/logo.svg","author_url":"tekslate","article_count":"0","field_of_intrest":"","status":1},"related_blogs":[{"id":41,"views":3251,"rating":4.4,"title":"JSF Tutorial","url_title":"jsf-tutorials"},{"id":93,"views":1088,"rating":4.3,"title":"Advanced Java Tutorial","url_title":"advanced-java-tutorials"},{"id":103,"views":443,"rating":4,"title":"Core Java Tutorial","url_title":"core-java-tutorials"},{"id":150,"views":0,"rating":4,"title":"JAVA Tutorials","url_title":"java-tutorials"},{"id":174,"views":653,"rating":4.4,"title":"Data Structures Interview Questions","url_title":"data-structures-interview-questions-answers"},{"id":181,"views":615,"rating":4,"title":"JSF Interview Questions & Answers","url_title":"jsf-interview-questions-answers"},{"id":192,"views":0,"rating":4,"title":"Advanced Java Interview Questions & Answers","url_title":"advanced-java-interview-questions-answers"},{"id":277,"views":5897,"rating":4.7,"title":"Advanced Java Interview Questions","url_title":"advanced-java-interview-questions"},{"id":318,"views":542,"rating":4,"title":"Core Java Interview Questions","url_title":"core-java-interview-questions"},{"id":477,"views":946,"rating":4,"title":"JSF Interview Questions And Answers","url_title":"jsf-interview-questions-and-answers"},{"id":492,"views":798,"rating":4,"title":"Data Structures Interview Questions","url_title":"interview-questions-on-data-structures"},{"id":1181,"views":549,"rating":4,"title":"History of MVC Architecture","url_title":"history-mvc-architecture"},{"id":1248,"views":1324,"rating":4.1,"title":"Linear Queues in Data Structures","url_title":"linear-queues-in-data-structures"},{"id":1249,"views":948,"rating":4,"title":"Circular Queue in Data Structures","url_title":"circular-queue-in-data-structures"},{"id":1250,"views":710,"rating":4.2,"title":"Postfix expression in Data Structures","url_title":"postfix-expression-in-data-structures"},{"id":1251,"views":607,"rating":4,"title":"Linear search in Data Structures","url_title":"linear-search-in-data-structures"},{"id":1254,"views":1079,"rating":4,"title":"Selection sort in Data Structures","url_title":"selection-sort-in-data-structures"},{"id":1255,"views":963,"rating":4,"title":"Insertion sort in Data Structures","url_title":"insertion-sort-in-data-structures"},{"id":1256,"views":488,"rating":4,"title":"Quick sort in Data Structures","url_title":"quick-sort-in-data-structures"},{"id":1257,"views":441,"rating":4,"title":"Heap Sort in Data Structures","url_title":"heap-sort-in-data-structures"},{"id":1258,"views":640,"rating":4,"title":"Linked List in Data Structures","url_title":"linked-list-in-data-structures"},{"id":1259,"views":787,"rating":4,"title":"Circular linked list in Data Structures","url_title":"circular-linked-list-in-data-structures"},{"id":1260,"views":927,"rating":4,"title":"Doubly Linked List in Data Structures","url_title":"doubly-linked-list-in-data-structures"},{"id":1261,"views":0,"rating":4,"title":"Stack using Linked List in Data Structures","url_title":"stack-using-linked-list-in-data-structures"},{"id":1262,"views":1064,"rating":4,"title":"Queues using Linked list in Data Structures","url_title":"queues-using-linked-list-data-structures"},{"id":1263,"views":0,"rating":4,"title":"TREES in Data Structures","url_title":"trees-in-data-structures"},{"id":1264,"views":1077,"rating":4,"title":"Binary Trees in Data Structures","url_title":"binary-trees-in-data-structures"},{"id":1265,"views":287,"rating":4,"title":"Binary search tree in Data Structures","url_title":"binary-search-tree-in-data-structures"},{"id":1266,"views":1074,"rating":4,"title":"AVL Trees in Data Structures","url_title":"avl-trees-in-data-structures"},{"id":1267,"views":452,"rating":4,"title":"B Trees in Data Structures","url_title":"b-trees-in-data-structures"},{"id":1268,"views":916,"rating":4,"title":"Graphs in Data Structures","url_title":"graphs-in-data-structures"},{"id":1723,"views":979,"rating":4,"title":"Introduction to JSF","url_title":"introduction-jsf"},{"id":1724,"views":122,"rating":4,"title":"MVC Rules and Regulation in JSF","url_title":"mvc-rules-regulation-jsf"},{"id":1725,"views":544,"rating":4,"title":"Enterprise Application in JSF","url_title":"enterprise-application-jsf"},{"id":1726,"views":276,"rating":4,"title":"FrameWorks in JSF","url_title":"frameworks-jsf"},{"id":1727,"views":638,"rating":4,"title":"JSF Elements","url_title":"jsf-elements"},{"id":1728,"views":282,"rating":4,"title":"Creation and working with First Servlet in JSF","url_title":"creation-working-first-servlet-jsf"},{"id":1729,"views":387,"rating":4,"title":"STEPS TO DESIGN FIRST APPLICATION in JSF","url_title":"steps-design-first-application-jsf"},{"id":1730,"views":991,"rating":4,"title":"Developing Registration Application in JSF","url_title":"developing-registration-application-jsf"},{"id":1731,"views":722,"rating":4,"title":"STEPS TO DESIGN JSF 1.2 APPLICATION IN ECLIPSE IDE","url_title":"steps-design-jsf-1-2-application-eclipse-ide"},{"id":1732,"views":539,"rating":4,"title":"DIFFERENCE BET N JSF1.X &JSF 2.X","url_title":"difference-bet-n-jsf1-x-jsf-2-x"},{"id":1733,"views":430,"rating":4,"title":"Steps to use Hyperlinks in JSF pages","url_title":"steps-use-hyperlinks-jsf-pages"},{"id":1734,"views":435,"rating":4,"title":"Introduction to I18N Applications in JSF","url_title":"introduction-i18n-applications-jsf"},{"id":1735,"views":782,"rating":4.2,"title":"Developing I18N Applications in JSF","url_title":"developing-i18n-applications-jsf"},{"id":1736,"views":526,"rating":4,"title":"steps to provide I18N Support in JSF Application","url_title":"steps-provide-i18n-support-jsf-application"},{"id":1737,"views":187,"rating":4,"title":"VALIDATIONS in JSF","url_title":"validations-jsf"},{"id":1739,"views":570,"rating":4,"title":"JSF2 Validations Application","url_title":"jsf2-validations-application"},{"id":1740,"views":1021,"rating":4,"title":"Developing JSF2 Validations Application","url_title":"developing-jsf2-validations-application"},{"id":1741,"views":327,"rating":4,"title":"CONVERTERS IN JSF","url_title":"converters-jsf"},{"id":1742,"views":450,"rating":4,"title":"Basic GUI Components in JSF","url_title":"basic-gui-components-jsf"},{"id":1743,"views":0,"rating":4,"title":"Event Handler Event handling in JSF","url_title":"event-handler-event-handling-jsf"},{"id":1744,"views":454,"rating":4,"title":"Layouts in JSF- Tiles","url_title":"layouts-jsf-tiles"},{"id":1960,"views":0,"rating":4,"title":"Java Virtual Machine","url_title":"java-virtual-machine-java"},{"id":1961,"views":0,"rating":4,"title":"Interface in Java","url_title":"java-interface-in-java"},{"id":1962,"views":0,"rating":4,"title":"Exception Handling in java","url_title":"exception-handling-in-java"},{"id":1963,"views":0,"rating":4,"title":"Multithreading in java","url_title":"java-multithreading-in-java"},{"id":1967,"views":0,"rating":4,"title":"Polymorphism in Java","url_title":"polymorphism-in-java"},{"id":1968,"views":0,"rating":4,"title":"Inheritance in Java","url_title":"java-inheritance-in-java"},{"id":1969,"views":0,"rating":4,"title":"Constructors in Java","url_title":"java-constructors-in-java"},{"id":1970,"views":0,"rating":4,"title":"Java Annotations","url_title":"java-annotations-in-java"},{"id":1971,"views":0,"rating":4,"title":"Encapsulation in java","url_title":"java-encapsulation-in-java"},{"id":1972,"views":0,"rating":4,"title":"Packages in java","url_title":"packages-in-java"},{"id":1973,"views":0,"rating":4,"title":"Java Regular Expressions","url_title":"java-regular-expressions-in-java"},{"id":1974,"views":0,"rating":4,"title":"Arraylist in Java","url_title":"java-arraylist-in-java"},{"id":2008,"views":1006,"rating":4,"title":"Advanced Java Resume","url_title":"advanced-java-resume"},{"id":2047,"views":579,"rating":4,"title":"Core Java Resume","url_title":"core-java-resume"},{"id":2125,"views":1456,"rating":4.2,"title":"Java Stream Tutorial","url_title":"java-stream-tutorial"},{"id":2126,"views":541,"rating":4.3,"title":"Java Swing Tutorial","url_title":"java-swing-tutorial"}],"recommended_articles":[{"id":4,"blog_id":416,"blog_title":"Embedded Systems Interview Questions","blog_url_title":"interview-questions-on-embedded-systems","order_value":5,"views":1547},{"id":5,"blog_id":1237,"blog_title":"Types of Pointers in C","blog_url_title":"explain-different-types-pointers-c-language","order_value":6,"views":14352},{"id":6,"blog_id":391,"blog_title":"Oracle Procure To Pay Interview Questions","blog_url_title":"interview-questions-on-oracle-procure-to-pay","order_value":1,"views":4352},{"id":7,"blog_id":1216,"blog_title":"Characteristics of C Language","blog_url_title":"characteristics-of-c-language","order_value":2,"views":10834},{"id":8,"blog_id":939,"blog_title":"Salesforce Sample Triggers with different Scenarios","blog_url_title":"15-sample-triggers-different-scenarios","order_value":3,"views":11712},{"id":9,"blog_id":344,"blog_title":"Oracle Financials Interview Questions","blog_url_title":"oracle-financials-interview-questions-and-answers","order_value":4,"views":9437},{"id":10,"blog_id":441,"blog_title":"Service Desk Analyst Interview Questions","blog_url_title":"interview-questions-on-service-desk-analyst","order_value":7,"views":5421},{"id":11,"blog_id":381,"blog_title":"SAP OOPS ABAP Interview Questions","blog_url_title":"interview-questions-on-sap-oops-abap","order_value":8,"views":5421},{"id":12,"blog_id":380,"blog_title":"SAP Adobe Forms Interview Questions","blog_url_title":"interview-questions-on-sap-adobe-forms","order_value":9,"views":1875},{"id":13,"blog_id":2079,"blog_title":"Power Apps Interview Questions","blog_url_title":"powerapps-interview-questions","order_value":10,"views":7541}],"recommended_programs":[{"id":2,"course":"Core Java Training","rating":"4.8","enrolled":"5703","url_title":"core-java-training"},{"id":10,"course":"Python Training","rating":"4.9","enrolled":"4549","url_title":"python-training"},{"id":44,"course":"Node JS Training","rating":"4.8","enrolled":"2852","url_title":"node-js-training"},{"id":65,"course":"LabVIEW Training","rating":"4.8","enrolled":"96","url_title":"labview-training"},{"id":70,"course":"Mean Stack Training","rating":"4.5","enrolled":"2491","url_title":"mean-stack-training"},{"id":72,"course":"Microservices Training","rating":"4.5","enrolled":"2543 ","url_title":"microservices-training"},{"id":78,"course":"Ruby on Rails Training","rating":"4.8","enrolled":"1254","url_title":"ruby-rails-training"},{"id":98,"course":"Oracle Apex Training","rating":"4.7","enrolled":"945","url_title":"oracle-apex-training"},{"id":99,"course":"Oracle OAF Training","rating":"4.9","enrolled":"4322","url_title":"oracle-oaf-training"},{"id":160,"course":"Java Spring Training","rating":"4.7","enrolled":"1943","url_title":"java-spring-training"},{"id":187,"course":"ReactJS Training","rating":"4.4","enrolled":"138","url_title":"reactjs-training"},{"id":229,"course":"Advanced Java Training","rating":"4.5","enrolled":"120","url_title":"advanced-java-training"},{"id":231,"course":".Net Training","rating":"4.1","enrolled":"120","url_title":"net-training"},{"id":236,"course":"Android Development Training","rating":"4.7","enrolled":"1562","url_title":"android-development-training"},{"id":245,"course":"JavaScript Training","rating":"4.8","enrolled":"5789","url_title":"javascript-training"}],"category_name":"Core Java","category_url":"core-java","type_d":{"id":689,"name":"JAVA Tutorials","slug":"java-tutorials","type":"articles","status":1}},"type":"articles","categories":[]},"data":"$d"}]
a:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Learn Java Tutorials Online With Examples | Learn Online"}],["$","meta","3",{"name":"description","content":"Java tutorials gives enough knowledge to get up and run with real world application development and object-oriented programming using the Java Language."}],["$","meta","4",{"name":"application-name","content":"tekslatetutor"}],["$","meta","5",{"name":"generator","content":"tekslatetutor"}],["$","link","6",{"rel":"canonical","href":"https://tekslate.com/java-tutorials"}],["$","meta","7",{"property":"og:title","content":"Learn Java Tutorials Online With Examples | Learn Online"}],["$","meta","8",{"property":"og:description","content":"Java tutorials gives enough knowledge to get up and run with real world application development and object-oriented programming using the Java Language."}],["$","meta","9",{"property":"og:url","content":"https://tekslate.com/java-tutorials"}],["$","meta","10",{"property":"og:site_name","content":"tekslatetutor"}],["$","meta","11",{"property":"og:locale","content":"en_US"}],["$","meta","12",{"property":"og:image","content":"https://tekslateassets.s3.amazonaws.com/images/TekSlate_New+Colour.svg"}],["$","meta","13",{"property":"og:image:width","content":"1200"}],["$","meta","14",{"property":"og:image:height","content":"628"}],["$","meta","15",{"property":"og:type","content":"website"}],["$","meta","16",{"name":"twitter:card","content":"summary"}],["$","meta","17",{"name":"twitter:creator","content":"@tekslatetutor"}],["$","meta","18",{"name":"twitter:title","content":"Learn Java Tutorials Online With Examples | Learn Online"}],["$","meta","19",{"name":"twitter:description","content":"Java tutorials gives enough knowledge to get up and run with real world application development and object-oriented programming using the Java Language."}],["$","meta","20",{"name":"twitter:image","content":"https://tekslateassets.s3.amazonaws.com/images/TekSlate_New+Colour.svg"}],["$","link","21",{"rel":"icon","href":"https://tekslateassets.s3.amazonaws.com/images/favicon.svg"}]]
1:null
