Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Javascript Basics

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 39

<!

Doctype html>
<html class="no-js" lang="en-US">

<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#ffffff" />

<title>Learn Java Programming</title>


<link rel="shortcut icon" href="/sites/tutorial2program/files/favicon.png" />
<link type="text/css" rel="stylesheet"
href="//cdn.programiz.com/sites/tutorial2program/files/advagg_css/
css__BJ6Ou6QsBRtnFTmxaakamOIS8n4QswDP2XnnZ1sxtaM__NBuvkP6eInGIkb1aJvUHx5PX79XApuxBD
kk_77W5tYk__DdD1UdeKEXumScAwIBnmVuP-kOInkxJzYmsYbmVxHfk.css" media="all" />
<link type="text/css" rel="stylesheet"
href="//cdn.programiz.com/sites/tutorial2program/files/advagg_css/
css__7zOkbZnadCKvEvLLRPpVfLUA2Xv4LlO35QvX2Ph01W4__NjYEEylRhAIT2durnUrqrLHUDNR1yO3VS
qxg8AFRWrM__DdD1UdeKEXumScAwIBnmVuP-kOInkxJzYmsYbmVxHfk.css" media="all" />

<!--[if IE]><![endif]-->
<link rel="dns-prefetch" href="//cdn.programiz.com" />
<link rel="preconnect" href="//cdn.programiz.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-dns-prefetch-control" content="on" />
<link rel="dns-prefetch" href="//cdn.programiz.com" />
<!--[if IE 9]>
<link rel="prefetch" href="//cdn.programiz.com" />
<![endif]-->
<meta name="description" content="Java is a powerful general-purpose programming
language. Our Java tutorial will guide you to learn Java one step at a time with
the help of examples." />
<meta name="generator" content="Drupal 7 (http://drupal.org)" />
<link rel="canonical" href="https://www.programiz.com/java-programming" />
<link rel="shortlink" href="https://www.programiz.com/node/1632" />
<script>
var url = window.location.href;
window.googletag = window.googletag || {cmd: []};
window.googletag.cmd.push(function() {
switch (true) {
case url.includes("/c-programming"):
window.googletag.pubads().setTargeting('prog_lang', 'c_lang');
break;
case url.includes("/cpp-programming"):
window.googletag.pubads().setTargeting('prog_lang',
'c_plus_plus_lang');
break;
case url.includes("/csharp-programming"):
window.googletag.pubads().setTargeting('prog_lang', 'c_sharp_lang');
break;
case url.includes("/dsa"):
window.googletag.pubads().setTargeting('prog_lang', 'dsa');
break;
case url.includes("/java-programming"):
window.googletag.pubads().setTargeting('prog_lang', 'java');
break;
case url.includes("/javascript"):
window.googletag.pubads().setTargeting('prog_lang', 'javascript');
break;
case url.includes("/kotlin-programming"):
window.googletag.pubads().setTargeting('prog_lang', 'kotlin');
break;
case url.includes("/python-programming"):
window.googletag.pubads().setTargeting('prog_lang', 'python');
break;
case url.includes("/swift-programming"):
window.googletag.pubads().setTargeting('prog_lang', 'swift');
break;
}
});
</script>

<script src="https://cmp.uniconsent.com/v2/stub.min.js"></script>
<script async src='https://cmp.uniconsent.com/v2/a8d3ae4937/cmp.js'></script>
<script type="text/javascript">
window.googletag = window.googletag || {};
window.googletag.cmd = window.googletag.cmd || [];
window.googletag.cmd.push(function () {
window.googletag.pubads().enableAsyncRendering();
window.googletag.pubads().disableInitialLoad();
});
(adsbygoogle = window.adsbygoogle || []).pauseAdRequests = 1;
</script>
<script>
__tcfapi("addEventListener", 2, function (tcData, success) {
if (success && tcData.unicLoad === true) {
if (!window._initAds) {
window._initAds = true;
var script = document.createElement('script');
script.async = true;
script.src =
'//dsh7ky7308k4b.cloudfront.net/publishers/Programizcomnew.min.js';
document.head.appendChild(script);

try {
fetch(new
Request("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", { method:
'HEAD', mode: 'no-cors' })).then(function (response) {
return true;
}).catch(function (e) {
if (document.getElementsByClassName("content-top-ad") !=
null && document.getElementsByClassName("content-top-ad").length > 0) {
document.getElementsByClassName("content-top-ad")
[0].style.display = "none";
}
var ad_elements = document.getElementsByClassName("pub-
ad");
while (ad_elements.length > 0) {
ad_elements[0].parentNode.removeChild(ad_elements[0]);
}

if (document.getElementById("carbon-block") != null) {
var carbonScript = document.createElement("script");
carbonScript.src = "//cdn.carbonads.com/carbon.js?
serve=CKYDL27L&placement=wwwprogramizcom";
carbonScript.id = "_carbonads_js";
document.getElementById("carbon-
block").appendChild(carbonScript);
}
});
} catch (error) {
console.log(error);
}
}
}
});
</script>

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TKXT7MH');</script>
<style>.pub-ad{z-index:0;clear:both;position:relative;text-align:center}.pub-
ad::before{content:'ADVERTISEMENTS';display:block;position:absolute;top:-
20px;left:0;right:0;height:20px;font-size:9px;line-height:20px;letter-
spacing:1px;color:#bcbfc5}</style>
<!-- Facebook Pixel Code -->
<script async>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '123000288571689');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=123000288571689&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
<style>.adSpinner {display: none;}</style>

<!--[if lte IE 9]>


<script type="text/javascript"
src="//cdn.programiz.com/sites/tutorial2program/files/advagg_js/js__Pim5tTowQ71vrRN
vaAg0m07jpCpXM6RsaXi_DARl1Go__GFcMVwA_8zYqqv3dYigkNwJmJBQm6DAlc8htDu-
dGw4__DdD1UdeKEXumScAwIBnmVuP-kOInkxJzYmsYbmVxHfk.js#ie9-"
onload="if(jQuery.isFunction(jQuery.holdReady)){jQuery.holdReady(true);}"></script>
<![endif]-->

<!--[if gt IE 9]>
<script type="text/javascript"
src="//cdn.programiz.com/sites/tutorial2program/files/advagg_js/js__Pim5tTowQ71vrRN
vaAg0m07jpCpXM6RsaXi_DARl1Go__GFcMVwA_8zYqqv3dYigkNwJmJBQm6DAlc8htDu-
dGw4__DdD1UdeKEXumScAwIBnmVuP-kOInkxJzYmsYbmVxHfk.js#ie10+" defer="defer"
onload="if(jQuery.isFunction(jQuery.holdReady)){jQuery.holdReady(true);}"></script>
<![endif]-->

<!--[if !IE]><!-->
<script type="text/javascript"
src="//cdn.programiz.com/sites/tutorial2program/files/advagg_js/js__Pim5tTowQ71vrRN
vaAg0m07jpCpXM6RsaXi_DARl1Go__GFcMVwA_8zYqqv3dYigkNwJmJBQm6DAlc8htDu-
dGw4__DdD1UdeKEXumScAwIBnmVuP-kOInkxJzYmsYbmVxHfk.js" defer="defer"
onload="if(jQuery.isFunction(jQuery.holdReady)){jQuery.holdReady(true);}"></script>
<!--<![endif]-->
<script type="text/javascript"
src="//cdn.programiz.com/sites/tutorial2program/files/advagg_js/js__ZyeOaiFuDejQQbh
UV7yg7atYZnj4WLfH77o0scv4068__MZdWWgUEYpsEWLcU0RqkaXMsEyksbpCgnf4XwXRkqz0__DdD1UdeK
EXumScAwIBnmVuP-kOInkxJzYmsYbmVxHfk.js" defer="defer" onload="function
advagg_mod_3(){advagg_mod_3.count=++advagg_mod_3.count||
1;try{if(advagg_mod_3.count<=40)
{init_drupal_core_settings();advagg_mod_3.count=100;}}
catch(e){if(advagg_mod_3.count>=40){throw e;}
else{window.setTimeout(advagg_mod_3,1);}}}
function advagg_mod_3_check()
{if(window.init_drupal_core_settings&&window.jQuery&&window.Drupal)
{advagg_mod_3();}
else{window.setTimeout(advagg_mod_3_check,1);}}
advagg_mod_3_check();"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function init_drupal_core_settings() {jQuery.extend(Drupal.settings,
{"basePath":"\/","pathPrefix":"","ajaxPageState":
{"theme":"programiz","theme_token":"dlRMgfIHNmbPK06XlIXp1VJvq8DqyWMCbyR7sOXnzh0"},"
urlIsAjaxTrusted":{"\/java-programming":true}});
if(jQuery.isFunction(jQuery.holdReady)){jQuery.holdReady(false);}} if(window.jQuery
&& window.Drupal){init_drupal_core_settings();}
//--><!]]>
</script>
</head>

<body>
<div class="main--backdrop"></div>

<main class="has-notice-bar-top"><header class="main-nav d-flex flex-column


justify-content-center"><div class="notice-bar-top d-none d-lg-block"
style="background: #FFEFe3;">
<div class="container d-flex justify-content-between">
<a class="notice-bar-top__message--link" rel="nofollow"
href="https://programiz.pro/offer/price-up?utm_source=Top-banner-programiz-
web&amp;utm_medium=banner&amp;utm_campaign=price-increase-sale__Top-banner-
programiz-web__September__60" title="Learn to Code Interactively" target="_blank">
<div class="notice-bar-top__message-wrapper">
<div class="notice-bar-top__sticker">
<p>60%</p>
<p>OFF</p>
</div>

<p class="notice-bar-top__message">
Get ahead of your peers. <strong>Try hands-on Java</strong>
with Programiz PRO. <span class="notice-bar-top__message notice-bar-top__message--
link-underlined">Claim Discount</span> </p>
</div>
</a>

<span class="d-flex notice-bar-top__message notice-bar-top__message--


secondary sale-timer align-items-center"></span>
</div>
</div>

<script>
function advagg_mod_1() {
// Count how many times this function is called.
advagg_mod_1.count = ++advagg_mod_1.count || 1;
try {
if (advagg_mod_1.count <= 40) {

createFixedBarTimer();

function createFixedBarTimer() {
const startDate = new Date('Sep 23, 2022 00:00:00 GMT-0700').getTime();
const endDate = new Date('Oct 01, 2022 00:00:00 GMT-0700').getTime();

const x = setInterval(function () {
let now = new Date().getTime();

const distance = endDate - now;

const days = Math.floor(distance / (1000 * 60 * 60 * 24));


const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 *
60));
const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((distance % (1000 * 60)) / 1000);

if (now > startDate && now < endDate) {


jQuery('.sale-timer').html(days + 'd : ' + hours + 'hrs : ' + minutes + 'mins
: ' + seconds + 's');
}
}, 1000);
}

// Set this to 100 so that this function only runs once.


advagg_mod_1.count = 100;
}
}
catch(e) {
if (advagg_mod_1.count >= 40) {
// Throw the exception if this still fails after running 40 times.
throw e;
}
else {
// Try again in 250 ms.
window.setTimeout(advagg_mod_1, 250);
}
}
}
function advagg_mod_1_check() {
if (window.jQuery && window.Drupal && window.Drupal.settings) {
advagg_mod_1();
}
else {
window.setTimeout(advagg_mod_1_check, 250);
}
}
advagg_mod_1_check();</script><nav><div class="container flex-1">
<div class="d-flex align-items-center p-relative">
<button class="main-nav__menu-btn d-lg-none d-flex">
<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#menu"></use></
svg></button>

<div class="brand">
<a href="/" title="Programiz">
<img class="d-lg-none"
src="//cdn.programiz.com/sites/tutorial2program/files/sp_logo.svg" width="28"
height="28" alt="Programiz"><img class="d-none d-lg-block"
src="//cdn.programiz.com/sites/tutorial2program/files/pc_logo.svg" width="84"
height="28" alt="Programiz"></a>
</div>

<div class="navigation d-none d-lg-flex align-items-center">

<a class="navigation__node navigation__node--pro" href="#" title="Learn to


Code Interactively" rel="nofollow"><span
class="navigation__node__label">Courses</span>
<svg class="programiz-icon programiz-icon--smallest
navigation__node__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#chevron-down"></
use></svg></a>
<a class="navigation__node" href="#" title="Programming Tutorials"><span
class="navigation__node__label">Tutorials </span>
<svg class="programiz-icon programiz-icon--smallest
navigation__node__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#chevron-down"></
use></svg></a>
<a class="navigation__node" href="javascript:void(0);" title="Programming
Examples">
<span class="navigation__node__label"> Examples </span>
<svg class="programiz-icon programiz-icon--smallest
navigation__node__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#chevron-down"></
use></svg></a>
</div>

<form action="/java-programming" method="post" id="search-api-page-search-form-


simplest-programming-tutorials-f" accept-charset="UTF-8"><div><div class="search-
input search-api-page-search-form-simplest-programming-tutorials-f"><button
type="submit" class="search-input__form-submit" hidden></button><button
type='\"button\"' class="search-input__clear btn"><svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button><button type='\"button\"' class="btn btn--clear c-default"><svg
class="programiz-icon programiz-icon--small search-input__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#search"></use></
svg></button><input type="text" value="" placeholder="Search tutorials and
examples" id="edit-keys-2" name="keys_2" class="search-input__control"
autocomplete="off"><input type="hidden" name="id" value="2"><input type="hidden"
name="form_build_id" value="form-H2MLB5282AvGd0veg3JJ3cpak0nLcc-
FNweuthiUntE"><input type="hidden" name="form_id"
value="search_api_page_search_form_simplest_programming_tutorials_f"></div></
div></form>
</div>
</div>
</nav></header><!-- Tutorials and Examples contents --><div class="sub-menu--
backdrop"></div>

<!-- Mobile view -->


<div class="sub-menu sub-menu--sp sub-menu--sp--tutorial-examples sub-menu__mobile-
head-wrap">
<div class="sub-menu__wrap">
<div class="sub-menu__head">
<div class="sub-menu__tab">
<div class="sub-menu__tab__head">
<button class="sub-menu__tab__node sub-menu__tab__node--index d-none">
<!-- Change the title dynamically -->
Course Index
</button>
<button class="sub-menu__tab__node sub-menu__tab__node--explore">
Explore Programiz
</button>
</div>
<div class="sub-menu__tab__body sub-menu__tab__body--index d-none"></div>
<div class="sub-menu__tab__body sub-menu__tab__body--explore">
<a href="javascript:void(0);" title="Python" class="sub-
menu__tab__list-node " data-language="python">Python</a>
<a href="javascript:void(0);" title="JavaScript" class="sub-
menu__tab__list-node " data-language="javascript">JavaScript</a>
<a href="javascript:void(0);" title="SQL" class="sub-
menu__tab__list-node " data-language="sql">SQL</a>
<a href="javascript:void(0);" title="C" class="sub-
menu__tab__list-node " data-language="c">C</a>
<a href="javascript:void(0);" title="C++" class="sub-
menu__tab__list-node " data-language="cpp">C++</a>
<a href="javascript:void(0);" title="Java" class="sub-
menu__tab__list-node sub-menu__tab__list-node--active"
data-language="java">Java</a>
<a href="javascript:void(0);" title="Kotlin" class="sub-
menu__tab__list-node " data-language="kotlin">Kotlin</a>
<a href="javascript:void(0);" title="Swift" class="sub-
menu__tab__list-node " data-language="swift">Swift</a>
<a href="javascript:void(0);" title="C#" class="sub-
menu__tab__list-node " data-language="csharp">C#</a>
<a href="javascript:void(0);" title="DSA" class="sub-
menu__tab__list-node " data-language="dsa">DSA</a>
</div>
</div>

<button class="btn btn--skeleton menu-hide-trigger">


<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button>
</div>
<div class="tabbed-content tabbed-content--no-border">
<div class="tabbed-content__right tabbed-content__right--index d-none">
<!-- Load contents dynamically -->
</div>
<div class="tabbed-content__right tabbed-content__right--explore">
<!-- PRO - Banner -->
<div class="sub-menu__cta sub-menu__mobile-banner">
<div class="d-flex sub-menu--mobile-banner">
<p class="body16-font-size font-weight-600">Learn Java practically
<br>
and <span class="get-certified-text">Get Certified</span>.</p>
<a class="pro-link pro-link--mobile-pro-link body14-font-size"
href="https://programiz.pro/learn/master-java?utm_source=nav-tutorial-
button&amp;utm_campaign=programiz&amp;utm_medium=referral"
target="_blank">ENROLL</a>
</div>
</div>
<div class="sub-menu__contents sub-menu--mobile sub-
menu__contents--java" id="m-java">
<div class="sub-menu__links">
<!-- Popular tutorials -->
<div class="sub-menu__links__column sub-
menu__links__column--left">
<h4 class="sub-menu__links__column__title">Popular Tutorials</h4>
<div class="sub-menu__link">
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title='Java "Hello World" Program' href="/java-
programming/hello-world" class="sub-menu__link__column">Java "Hello World"
Program</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Java for Loop" href="/java-programming/for-loop"
class="sub-menu__link__column">Java for Loop</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Arrays in Java" href="/java-programming/arrays"
class="sub-menu__link__column">Arrays in Java</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Interfaces in Java"
href="/java-programming/class-objects" class="sub-menu__link__column">Interfaces in
Java</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Java ArrayList"
href="/java-programming/arraylist" class="sub-menu__link__column">Java
ArrayList</a>
</div>
</div>
</div>
<a title="Java Tutorials" href="/java-programming" class="d-flex
align-items-center font-weight-500">
Start Learning Java <svg class="programiz-icon
programiz-icon--small ml-2x"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>

<!-- Popular examples -->


<div class="sub-menu__links__column sub-
menu__links__column--left">
<h4 class="sub-menu__links__column__title">Popular Examples</h4>
<div class="sub-menu__link">
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Check prime number"
href="/java-programming/examples/prime-number" class="sub-menu__link__column">Check
prime number</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Print the Fibonacci series" href="/java-
programming/examples/fibonacci-series" class="sub-menu__link__column">Print the
Fibonacci series</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Print Pyramids and Patterns" href="/java-
programming/examples/pyramid-pattern" class="sub-menu__link__column">Print Pyramids
and Patterns</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Multiply two matrices"
href="/java-programming/examples/multiplication-table" class="sub-
menu__link__column">Multiply two matrices</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Find the standard deviation" href="/java-
programming/examples/standard-deviation" class="sub-menu__link__column">Find the
standard deviation</a>
</div>
</div>
</div>
<a title="Java Examples" href="/java-programming/examples"
class="d-flex align-items-center font-weight-500">
Explore Java Examples
<svg class="programiz-icon programiz-icon--small ml-2x"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>

<!-- Reference materials -->


<div class="sub-menu__links__column sub-
menu__links__column--right">
<h4 class="sub-menu__links__column__title">Reference Materials</h4>
<div class="sub-menu__link">
<div class="sub-menu__link__row">
<a href="/java-programming/library/string" title="String"
class="btn btn--gray btn--small btn--block d-flex align-items-center">
String <svg class="programiz-icon
programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
<div class="sub-menu__link__row">
<a href="/java-programming/library/arraylist"
title="ArrayList" class="btn btn--gray btn--small btn--block d-flex align-items-
center">
ArrayList <svg class="programiz-icon
programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
<div class="sub-menu__link__row">
<a href="/java-programming/library/hashmap" title="HashMap"
class="btn btn--gray btn--small btn--block d-flex align-items-center">
HashMap <svg class="programiz-icon
programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
<div class="sub-menu__link__row">
<a href="/java-programming/library/math" title="Math"
class="btn btn--gray btn--small btn--block d-flex align-items-center">
Math <svg class="programiz-icon
programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>

<a title="Java References" href="/java-programming/library"


class="d-flex align-items-center font-weight-500">
View all
<svg class="programiz-icon programiz-icon--small ml-2x"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Pro Desktop view -->


<div class="sub-menu sub-menu--pc sub-menu--pc--pro">
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-10">
<div class="sub-menu__wrap">
<div class="tabbed-content tabbed-content--no-border">
<div class="tabbed-content__left tabbed-content__left--small">
<div class="tabbed-link-container">
<div class="tabbed-link">
<a title="Learning Paths" href="javascript:void(0);"
class="tabbed-link__node tabbed-link__node--active" data-type="learning_paths">
Learning Paths </a>
</div>
<div class="tabbed-link">
<a title="Challenges" href="javascript:void(0);" class="tabbed-
link__node " data-type="challenges">
Challenges </a>
</div>
</div>
</div>
<div class="tabbed-content__right">
<div class="sub-menu__contents sub-menu__contents--learning-paths"
id="t-learning-paths">

<div class="sub-menu__links">
<div class="sub-menu__links__column sub-menu__links__column--
left-pro">
<div class="pro-nav-left-container">
<div class="pro-nav-left-container--image" style="background-
image: url(/sites/all/themes/programiz/assets/java-pro-nav-left.png)"></div>

<h4 class="sub-menu__links__column__title">
Learn Java Interactively</h4>

<a class="btn btn--primary btn--xlarge d-flex align-items-


center" title="Try for Free" href="https://programiz.pro/learn/master-java?
utm_source=nav-pro-button&amp;utm_campaign=programiz&amp;utm_medium=referral">
<span for="" class="btn__label">Try for Free</span>
<svg class="programiz-icon ml-2x"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
<button class="btn btn--skeleton ml-auto">
<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button>
</div>
</div>

<div class="sub-menu__links__column sub-menu__links__column--


right-pro">
<h4 class="sub-menu__links__column__title">Courses</h4>
<div class="sub-menu__link">

<div class="sub-menu__link__row">
<a title="Become a Java Master"
href="https://programiz.pro/learn/master-java?utm_source=nav-pro-
button&amp;utm_campaign=programiz&amp;utm_medium=referral" class="btn btn--gray
btn--small btn--block d-flex align-items-center">
Become a Java Master </a>
</div>

<div class="sub-menu__link__row">
<a title="Become a C Master"
href="https://programiz.pro/learn/master-c-programming?utm_source=nav-pro-
button&amp;utm_campaign=programiz&amp;utm_medium=referral" class="btn btn--gray
btn--small btn--block d-flex align-items-center">
Become a C Master </a>
</div>

<div class="sub-menu__link__row">
<a title="Become a Python Master"
href="https://programiz.pro/learn/master-python?utm_source=nav-pro-
button&amp;utm_campaign=programiz&amp;utm_medium=referral" class="btn btn--gray
btn--small btn--block d-flex align-items-center">
Become a Python Master </a>
</div>
<a title="Try for Free"
href="https://programiz.pro/catalog/languages/java?utm_source=nav-pro-
button&amp;utm_campaign=programiz&amp;utm_medium=referral" class="d-flex align-
items-center font-weight-500 view-all-courses-challenges">
View all Courses
<svg class="programiz-icon programiz-icon--small ml-
2x"><use xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-
right"></use></svg></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Desktop view -->


<div class="sub-menu sub-menu--pc sub-menu--pc--tutorial">
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-10">
<div class="sub-menu__wrap">
<div class="tabbed-content tabbed-content--no-border">
<div class="tabbed-content__left tabbed-content__left--small">
<div class="tabbed-link-container">
<div class="tabbed-link">
<a title="Python" href="javascript:void(0);" class="d-flex
tabbed-link__node " data-language="python">
<span>
Python </span>
</a>
</div>
<div class="tabbed-link">
<a title="JavaScript" href="javascript:void(0);" class="d-flex
tabbed-link__node " data-language="javascript">
<span>
JavaScript </span>
</a>
</div>
<div class="tabbed-link">
<a title="SQL" href="javascript:void(0);" class="d-flex tabbed-
link__node " data-language="sql">
<span>
SQL </span>
</a>
</div>
<div class="tabbed-link">
<a title="C" href="javascript:void(0);" class="d-flex tabbed-
link__node " data-language="c">
<span>
C </span>
</a>
</div>
<div class="tabbed-link">
<a title="C++" href="javascript:void(0);" class="d-flex tabbed-
link__node " data-language="cpp">
<span>
C++ </span>
</a>
</div>
<div class="tabbed-link">
<a title="Java" href="javascript:void(0);" class="d-flex
tabbed-link__node tabbed-link__node--active" data-language="java">
<span>
Java </span>
</a>
</div>
<div class="tabbed-link">
<a title="Kotlin" href="javascript:void(0);" class="d-flex
tabbed-link__node " data-language="kotlin">
<span>
Kotlin </span>
</a>
</div>
<div class="tabbed-link">
<a title="Swift" href="javascript:void(0);" class="d-flex
tabbed-link__node " data-language="swift">
<span>
Swift </span>
</a>
</div>
<div class="tabbed-link">
<a title="C#" href="javascript:void(0);" class="d-flex tabbed-
link__node " data-language="csharp">
<span>
C# </span>
</a>
</div>
<div class="tabbed-link">
<a title="DSA" href="javascript:void(0);" class="d-flex tabbed-
link__node " data-language="dsa">
<span>
DSA </span>
</a>
</div>
</div>
</div>
<div class="tabbed-content__right">
<div class="sub-menu__contents sub-menu__contents--java" id="t-java">
<!-- PRO - Banner -->
<div class="sub-menu__cta">
<div class="d-flex sub-menu--desktop-banner">
<h3 class="h3-font">Learn Java practically <br>
and <span class="get-certified-text">Get
Certified</span>.</h3>
<a class="pro-link body14-font-size font-weight-700"
href="https://programiz.pro/learn/master-java?utm_source=nav-tutorial-
button&amp;utm_campaign=programiz&amp;utm_medium=referral" target="_blank">ENROLL
FOR FREE!</a>
</div>
<button class="btn btn--skeleton">
<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button>
</div>

<div class="sub-menu__links">
<!-- Popular tutorials -->
<div class="sub-menu__links__column sub-
menu__links__column--left">
<h4 class="sub-menu__links__column__title">Popular
Tutorials</h4>
<div class="sub-menu__link">
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title='Java "Hello World" Program' href="/java-
programming/hello-world" class="sub-menu__link__column">Java "Hello World"
Program</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Java for Loop" href="/java-programming/for-
loop" class="sub-menu__link__column">Java for Loop</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Arrays in Java"
href="/java-programming/arrays" class="sub-menu__link__column">Arrays in Java</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Interfaces in Java" href="/java-
programming/class-objects" class="sub-menu__link__column">Interfaces in Java</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Java ArrayList"
href="/java-programming/arraylist" class="sub-menu__link__column">Java
ArrayList</a>
</div>
</div>
</div>
<a title="Java tutorials" href="/java-programming" class="d-
flex align-items-center font-weight-500 d-lg-none">
Start Learning Java <svg
class="programiz-icon programiz-icon--small ml-2x"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
<a title="All Java tutorials" href="/java-programming"
class="d-flex align-items-center font-weight-600 article-font-size sub-menu-all-
tutorials-link">
<span>
All Java Tutorials
</span>
<svg class="programiz-icon programiz-icon--medium"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
<!-- <a title="Java tutorials" href="/java-programming"
class="d-flex align-items-center font-weight-500">
View all tutorials
<svg class="programiz-icon programiz-icon--small ml-2x">
<use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right">
</use>
</svg>
</a> -->
</div>

<!-- Reference materials -->


<div class="sub-menu__links__column sub-
menu__links__column--right">
<h4 class="sub-menu__links__column__title">Reference
Materials</h4>
<div class="sub-menu__link">

<div class="sub-menu__link__row">
<a title="String"
href="/java-programming/library/string" class="btn btn--gray btn--small btn--block
d-flex align-items-center">
String <svg
class="programiz-icon programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
<div class="sub-menu__link__row">
<a title="ArrayList"
href="/java-programming/library/arraylist" class="btn btn--gray btn--small btn--
block d-flex align-items-center">
ArrayList <svg
class="programiz-icon programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
<div class="sub-menu__link__row">
<a title="HashMap"
href="/java-programming/library/hashmap" class="btn btn--gray btn--small btn--block
d-flex align-items-center">
HashMap <svg
class="programiz-icon programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
<div class="sub-menu__link__row">
<a title="Math" href="/java-programming/library/math"
class="btn btn--gray btn--small btn--block d-flex align-items-center">
Math <svg
class="programiz-icon programiz-icon--small ml-auto"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
</div>
<a title="Java References" href="/java-programming/library"
class="d-flex align-items-center font-weight-500">
View all
<svg class="programiz-icon programiz-icon--small ml-
2x"><use xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-
right"></use></svg></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Desktop view only -->


<div class="sub-menu sub-menu--pc sub-menu--pc--examples">
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-10">
<div class="sub-menu__wrap">
<div class="tabbed-content tabbed-content--no-border">
<div class="tabbed-content__left tabbed-content__left--small">

<div class="tabbed-link-container">
<div class="tabbed-link">
<a title="Python" href="javascript:void(0);" class="tabbed-
link__node " data-language="python">Python</a>
</div>
<div class="tabbed-link">
<a title="JavaScript" href="javascript:void(0);" class="tabbed-
link__node " data-language="javascript">JavaScript</a>
</div>
<div class="tabbed-link">
<a title="C" href="javascript:void(0);" class="tabbed-
link__node " data-language="c">C</a>
</div>
<div class="tabbed-link">
<a title="C++" href="javascript:void(0);" class="tabbed-
link__node " data-language="cpp">C++</a>
</div>
<div class="tabbed-link">
<a title="Java" href="javascript:void(0);" class="tabbed-
link__node tabbed-link__node--active" data-language="java">Java</a>
</div>
<div class="tabbed-link">
<a title="Kotlin" href="javascript:void(0);" class="tabbed-
link__node " data-language="kotlin">Kotlin</a>
</div>
</div>

</div>
<div class="tabbed-content__right">
<div class="sub-menu__contents sub-menu__contents--java"
id="examples-java">
<div class="sub-menu__cta">
<div class="d-flex sub-menu--desktop-banner">
<p class="h3-font">Learn Java practically <br>
and <span class="get-certified-text">Get
Certified</span>.</p>
<a class="pro-link body14-font-size font-weight-700"
href="https://programiz.pro/learn/master-java?utm_source=nav-example-
button&amp;utm_campaign=programiz&amp;utm_medium=referral" target="_blank">ENROLL
FOR FREE!</a>
</div>
<button class="btn btn--skeleton">
<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button>
</div>

<div class="sub-menu__links">
<div class="sub-menu__links__column sub-menu__links__column--
left">
<h4 class="sub-menu__links__column__title">Popular
Examples</h4>
<div class="sub-menu__link">
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Check prime number"
href="/java-programming/examples/prime-number" class="sub-menu__link__column">Check
prime number</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Print the Fibonacci series" href="/java-
programming/examples/fibonacci-series" class="sub-menu__link__column">Print the
Fibonacci series</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Print Pyramids and Patterns" href="/java-
programming/examples/pyramid-pattern" class="sub-menu__link__column">Print Pyramids
and Patterns</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Multiply two matrices" href="/java-
programming/examples/multiplication-table" class="sub-menu__link__column">Multiply
two matrices</a>
</div>
</div>
<div class="sub-menu__link__row">
<div class="sub-menu__link__column">
<a title="Find the standard deviation" href="/java-
programming/examples/standard-deviation" class="sub-menu__link__column">Find the
standard deviation</a>
</div>
</div>
</div>
<a title="Java Examples" href="/java-programming/examples"
class="align-items-center font-weight-600 article-font-size sub-menu-all-tutorials-
link d-none d-lg-flex">
<span>
All Java Examples
</span>
<svg class="programiz-icon programiz-icon--small ml-2x"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#arrow-right"></
use></svg></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<div class="top-banner top-banner--tutorial">


<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="title-section">
<a href="https://www.programiz.com/java-programming">
<div class="title-section__image">
<p><img alt="Java Logo Programiz" class="title-section__icon"
src="/sites/all/themes/programiz/assets/java.svg" title="Learn Java"></p>
</div>
</a>
<div class="title-section__detail-container">
<h1 class="title-section__title">Learn Java
Programming</h1>
<div class="nav-tab d-none d-md-flex">
<a class="nav-tab__node" href="/java-programming" title="Java Tutorials"><svg
class="programiz-icon nav-tab__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#book"></use></
svg>
Tutorials
</a>
<a class="nav-tab__node nav-tab--pro-link"
href="https://programiz.pro/learn/master-java?utm_source=landing-
nav=programiz&amp;utm_medium=referral" title="Learn Java Interactively"><img
class="programiz-icon nav-tab__icon"
src="/sites/all/themes/programiz/assets/feather-icon.svg">
Course
</a>
<a class="nav-tab__node" href="/java-programming/examples" title="Java Examples">
<svg class="programiz-icon nav-tab__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#align-left"></
use></svg>
Examples
</a>
<a class="nav-tab__node" href="/java-programming/library" title="Java
References">
<svg class="programiz-icon nav-tab__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#box"></use></svg>
References </a><a class="nav-tab__node" href="/java-programming/online-
compiler/" title="Online Java Compiler">
<svg class="programiz-icon nav-tab__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#code-circle"></
use></svg>Compiler</a>
</div>
</div>
</div>

<div class="nav-tab nav-tab--sp d-md-none"><a class="nav-


tab__node" href="/java-programming" title="Java Tutorials">Tutorials </a> <a
class="nav-tab__node nav-tab--pro-link" href="https://programiz.pro/learn/master-
java?utm_source=landing-nav=programiz&amp;utm_medium=referral" title="Learn Java
Interactively"> Course </a> <a class="nav-tab__node"
href="/java-programming/examples" title="Java Examples"> Examples </a> <a
class="nav-tab__node" href="/java-programming/library" title="Java References">
References </a><a class="nav-tab__node" href="/java-programming/online-compiler/"
title="Online Java Compiler"> Compiler </a></div>

<div class="program-description">
<p class="mb-5x">Java is a powerful general-purpose programming
language. It is used to develop desktop and mobile applications, big data
processing, embedded systems, and so on. According to Oracle, the company that owns
Java, Java runs on 3 billion devices worldwide, which makes Java one of the most
popular programming languages.</p>

<p>Our Java tutorial will guide you to learn Java one step at a time.</p>

<p><strong>Don't know how to start learning Java the right way?</strong> Enroll in
our <a href="https://programiz.pro/learn/master-java?utm_source=landing-page-
body&amp;utm_campaign=programiz&amp;utm_medium=referral">Interactive Java
Course</a> for FREE.</p>

</div>
</div>
</div>
</div>
</div>

<div class="contents contents--neg">


<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="d-flex">
<div class="left-bar d-none d-lg-block">
<div class="card-alt mb-10x">
<h3>Page Index</h3>
<div class="list">
<ul><li><a href="#introduction" title="Java Introduction">Java
Introduction</a></li>
<li><a href="#flow-control" title="Java Flow Control">Java Flow
Control</a></li>
<li><a href="#arrays" title="Java Arrays">Java Arrays</a></li>
<li><a href="#oop-1" title="Java OOP (I)">Java OOP (I)</a></li>
<li><a href="#oop-2" title="Java OOP (II)">Java OOP (II)</a></li>
<li><a href="#oop-3" title="Java OOP (III)">Java OOP (III)</a></li>
<li><a href="#exception-handling" title="Java Exception Handling">Java
Exception Handling</a></li>
<li><a href="#list" title="Java List">Java List</a></li>
<li><a href="#queue" title="Java Queue">Java Queue</a></li>
<li><a href="#map" title="Java Map">Java Map</a></li>
<li><a href="#set" title="Java Set">Java Set</a></li>
<li><a href="#io-stream" title="Java I/O Streams">Java I/O Streams</a></li>
<li><a href="#reader-writer" title="Java Reader/Writer">Java
Reader/Writer</a></li>
<li><a href="#additional-topics" title="Additional Topics">Additional
Topics</a></li>
<li><a href="#about" title="About Java Programming">About Java
Programming</a></li>
<li><a href="#why" title="Why learn Java?">Why learn Java ?</a></li>
<li><a href="#how" title="How to learn Java?">How to learn Java?</a></li>
<li><a href="#resources" title="Java Resources">Java Resources</a></li>
</ul></div>
</div>

<style>
#div-gpt-ad-Programizcom36792 {display:none; }
@media(min-width: 992px) { #div-gpt-ad-Programizcom36792 {display: block;} }
</style><div id="div-gpt-ad-Programizcom36792" style="width:300px; margin: 40px
0;">
</div>

</div>
<div class="right-bar">
<div class="card-alt mb-9x" id="introduction">
<h3>Java Introduction</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/hello-world" title="Java Hello
World"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Hello World</a></li>
<li><a href="/java-programming/jvm-jre-jdk" title="Java
JVM, JRE and JDK"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java JVM, JRE and JDK</a></li>
<li><a href="/java-programming/variables-literals"
title="Java Variables and Literals"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Variables</a></li>
<li><a href="/java-programming/variables-primitive-data-
types" title="Java Primitive Data Types"><span class="icon-wrap"><svg
class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Data Types</a></li>
<li><a href="/java-programming/operators" title="Java
Operators"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Operators</a></li>
<li><a href="/java-programming/basic-input-output"
title="Java Input and Output"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Input and Output</a></li>
<li><a href="/java-programming/expressions-statements-
blocks" title="Java Expressions &amp; Statements"><span class="icon-wrap"><svg
class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Expressions &amp; Blocks</a></li>
<li><a href="/java-programming/comments" title="Java
Comments"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Comment</a></li>
</ul></div>
</div>
</div>

<style>
#div-gpt-ad-Programizcom36791 {display:none; }
#div-gpt-ad-Programizcom36795 {display: block; width: 300px; height: 250px;
margin: 32px auto;}
@media(min-width: 992px) { #div-gpt-ad-Programizcom36791 {display: block;
width: 728px; height: 90px; margin:32px auto;} #div-gpt-ad-Programizcom36795
{display: none;}}
</style><div id="div-gpt-ad-Programizcom36791">
</div>

<div id="div-gpt-ad-Programizcom36795">
</div>

<div class="card-alt mb-9x" id="flow-control">


<h3>Java Flow Control</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/if-else-statement" title="Java
if...else Statement"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java if...else</a></li>
<li><a href="/java-programming/switch-statement"
title="switch Statement in Java"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java switch Statement</a></li>
<li><a href="/java-programming/for-loop" title="Java for
Loop"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java for Loop</a></li>
<li><a href="/java-programming/enhanced-for-loop"
title="Java enhanced for loop Statement"><span class="icon-wrap"><svg
class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java for-each Loop</a></li>
<li><a href="/java-programming/do-while-loop" title="Java
while Loop"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java while Loop</a></li>
<li><a href="/java-programming/break-statement" title="Java
break Statement"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java break Statement</a></li>
<li><a href="/java-programming/continue-statement"
title="Java continue Statement"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java continue Statement</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="arrays">


<h3>Java Arrays</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/arrays" title="Java
Arrays"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Arrays</a></li>
<li><a href="/java-programming/multidimensional-array"
title="Java multidimensional-array"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Multidimensional Array</a></li>
<li><a href="/java-programming/copy-arrays" title="Java
copy arrays"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Copy Array</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="oop-1">


<h3>Java OOP (I)</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/class-objects" title="Java
Class and Objects"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Class and Objects</a></li>
<li><a href="/java-programming/methods" title="Java
Methods"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Methods</a></li>
<li><a href="/java-programming/constructors" title="Java
Constructors"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Constructor</a></li>
<li><a href="/java-programming/string" title="Java
Strings"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Strings</a></li>
<li><a href="/java-programming/access-modifiers"
title="Java Access Modifiers"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Access Modifiers</a></li>
<li><a href="/java-programming/this-keyword" title="Java
this keyword"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java this keyword</a></li>
<li><a href="/java-programming/final-keyword" title="Java
final keyword"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java final keyword</a></li>
<li><a href="/java-programming/recursion" title="Java
Recursion"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Recursion</a></li>
<li><a href="/java-programming/instanceof" title="Java
instanceof"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java instanceof Operator</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="oop-2">


<h3>Java OOP (II)</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/inheritance" title="Java
inheritance"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Inheritance</a></li>
<li><a href="/java-programming/method-overriding"
title="Java Method Overriding"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Method Overriding</a></li>
<li><a href="/java-programming/super-keyword" title="Java
super Keyword"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java super Keyword</a></li>
<li><a href="/java-programming/abstract-classes-methods"
title="Java Abstract Classes and Methods"><span class="icon-wrap"><svg
class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Abstract Class &amp; Method</a></li>
<li><a href="/java-programming/interfaces" title="Java
Interfaces"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Interfaces</a></li>
<li><a href="/java-programming/polymorphism" title="Java
Polymorphism"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Polymorphism</a></li>
<li><a href="/java-programming/encapsulation" title="Java
Encapsulation"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Encapsulation</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="oop-3">


<h3>Java OOP (III)</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/nested-inner-class"
title="Java Nested and Inner Class"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Nested &amp; Inner Class</a></li>
<li><a href="/java-programming/static-class" title="Java
static Class"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Static Class</a></li>
<li><a href="/java-programming/anonymous-class" title="Java
Anynomous Class"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Anonymous Class</a></li>
<li><a href="/java-programming/singleton" title="Java
Singleton"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Singleton</a></li>
<li><a href="/java-programming/enums" title="Java enum
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java enum Class</a></li>
<li><a href="/java-programming/enum-constructor"
title="Java enum Constructor"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java enum Constructor</a></li>
<li><a href="/java-programming/enum-string" title="Java
enum String"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java enum String</a></li>
<li><a href="/java-programming/reflection" title="Java
Reflection"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Reflection</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="exception-handling">


<h3>Java Exception Handling</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/exceptions" title="Java
exceptions"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Exceptions</a></li>
<li><a href="/java-programming/exception-handling"
title="Java Exception Handling"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Exception Handling</a></li>
<li><a href="/java-programming/try-catch" title="Java
try...catch"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java try...catch</a></li>
<li><a href="/java-programming/throw-throws" title="Java
throw and throws"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java throw and throws</a></li>
<li><a href="/java-programming/multiple-exceptions"
title="Java Catch Multiple Exceptions"><span class="icon-wrap"><svg
class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java catch Multiple Exceptions</a></li>
<li><a href="/java-programming/try-with-resources"
title="Java try-with-resources"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java try-with-resources</a></li>
<li><a href="/java-programming/annotations" title="Java
Annotations"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Annotations</a></li>
<li><a href="/java-programming/annotation-types"
title="Java Annotation Types"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Annotation Types</a></li>
<li><a href="/java-programming/logging" title="Java
Logging"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Logging</a></li>
<li><a href="/java-programming/assertions" title="Java
Assertions"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Assertions</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="list">


<h3>Java List</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/collections" title="Java
Collections FrameWork"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Collections Framework</a></li>
<li><a href="/java-programming/collection-interface"
title="Java Collection Interface"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Collection Interface</a></li>
<li><a href="/java-programming/list" title="Java List
Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java List Interface</a></li>
<li><a href="/java-programming/arraylist" title="Java
ArrayList"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ArrayList</a></li>
<li><a href="/java-programming/vector" title="Java
Vector"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Vector</a></li>
<li><a href="/java-programming/stack" title="Java
Stack"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Stack</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="queue">


<h3>Java Queue</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/queue" title="Java Queue
Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Queue Interface</a></li>
<li><a href="/java-programming/priorityqueue" title="Java
PriorityQueue Interface"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java PriorityQueue Interface</a></li>
<li><a href="/java-programming/deque" title="Java Deque
Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Deque Interface</a></li>
<li><a href="/java-programming/linkedlist" title="Java
LinkedList"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java LinkedList</a></li>
<li><a href="/java-programming/arraydeque" title="Java
ArrayDeque"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ArrayDeque</a></li>
<li><a href="/java-programming/blockingqueue" title="Java
BlockingQueue Interface"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java BlockingQueue Interface</a></li>
<li><a href="/java-programming/arrayblockingqueue"
title="Java ArrayBlockingQueue"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ArrayBlockingQueue</a></li>
<li><a href="/java-programming/linkedblockingqueue"
title="Java LinkedBlockingQueue"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java LinkedBlockingQueue</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="map">


<h3>Java Map</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/map" title="Java Map
Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Map Interface</a></li>
<li><a href="/java-programming/hashmap" title="Java HashMap
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java HashMap</a></li>
<li><a href="/java-programming/linkedhashmap" title="Java
LinkedHashMap class"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java LinkedHashMap</a></li>
<li><a href="/java-programming/weakhashmap" title="Java
WeakHashMap class"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java WeakHashMap</a></li>
<li><a href="/java-programming/enummap" title="Java EnumMap
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java EnumMap</a></li>
<li><a href="/java-programming/sortedmap" title="Java
SortedMap Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java SortedMap Interface</a></li>
<li><a href="/java-programming/navigablemap" title="Java
NavigableMap Interface"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java NavigableMap Interface</a></li>
<li><a href="/java-programming/treemap" title="Java TreeMap
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java TreeMap</a></li>
<li><a href="/java-programming/concurrentmap" title="Java
concurrentMap Interface"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ConcurrentMap Interface</a></li>
<li><a href="/java-programming/concurrenthashmap"
title="Java ConcurrentHashMap Class"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java ConcurrentHashMap</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="set">


<h3>Java Set</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/set" title="Java Set
Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Set Interface</a></li>
<li><a href="/java-programming/hashset" title="Java HashSet
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java HashSet</a></li>
<li><a href="/java-programming/enumset" title="Java EnumSet
class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java EnumSet</a></li>
<li><a href="/java-programming/linkedhashset" title="Java
LinkedHashSet class"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java LinkedHashSet</a></li>
<li><a href="/java-programming/sortedset" title="Java
SortedSet Interface"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java SortedSet Interface</a></li>
<li><a href="/java-programming/navigableset" title="Java
NavigableSet Interface"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java NavigableSet Interface</a></li>
<li><a href="/java-programming/treeset" title="Java TreeSet
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java TreeSet</a></li>
<li><a href="/java-programming/algorithms" title="Java
Algorithms"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Algorithms</a></li>
<li><a href="/java-programming/iterator" title="Java
Iterator"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Iterator</a></li>
<li><a href="/java-programming/listiterator" title="Java
ListIterator"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ListIterator</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="io-stream">


<h3>Java I/O Streams</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/io-streams" title="Java I/O
Streams"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java I/O Streams</a></li>
<li><a href="/java-programming/inputstream" title="Java
InputStream"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java InputStream</a></li>
<li><a href="/java-programming/outputstream" title="Java
OutputStream"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java OutputStream</a></li>
<li><a href="/java-programming/fileinputstream" title="Java
FileInputStream"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java FileInputStream</a></li>
<li><a href="/java-programming/fileoutputstream"
title="Java FileOutputStream"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java FileOutputStream</a></li>
<li><a href="/java-programming/bytearrayinputstream"
title="Java ByteArrayInputStream"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java ByteArrayInputStream</a></li>
<li><a href="/java-programming/bytearrayoutputstream"
title="Java ByteArrayOutputStream"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java ByteArrayOutputStream</a></li>
<li><a href="/java-programming/objectinputstream"
title="Java ObjectInputStream"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ObjectInputStream</a></li>
<li><a href="/java-programming/objectoutputstream"
title="Java ObjectOutputStream"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java ObjectOutputStream</a></li>
<li><a href="/java-programming/bufferedinputstream"
title="Java BufferedInputStream"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java BufferedInputStream</a></li>
<li><a href="/java-programming/bufferedoutputstream"
title="Java BufferedOutputStream"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java BufferedOutputStream</a></li>
<li><a href="/java-programming/printstream" title="Java
PrintStream"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java PrintStream</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="reader-writer">


<h3>Java Reader/Writer</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/reader" title="Java
Reader"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Reader</a></li>
<li><a href="/java-programming/writer" title="Java
Writer"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Writer</a></li>
<li><a href="/java-programming/inputstreamreader"
title="Java InputStreamReader"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java InputStreamReader</a></li>
<li><a href="/java-programming/outputstreamwriter"
title="Java OutputStreamWriter"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java OutputStreamWriter</a></li>
<li><a href="/java-programming/filereader" title="Java
FileReader"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java FileReader</a></li>
<li><a href="/java-programming/filewriter" title="Java
FileWriter"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java FileWriter</a></li>
<li><a href="/java-programming/bufferedreader" title="Java
BufferedReader"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java BufferedReader</a></li>
<li><a href="/java-programming/bufferedwriter" title="Java
BufferedWriter"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java BufferedWriter</a></li>
<li><a href="/java-programming/stringreader" title="Java
StringReader"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java StringReader</a></li>
<li><a href="/java-programming/stringwriter" title="Java
StringWriter"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java StringWriter</a></li>
<li><a href="/java-programming/printwriter" title="Java
PrintWriter"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java PrintWriter</a></li>
</ul></div>
</div>
</div>

<div class="card-alt mb-9x" id="additional-topics">


<h3>Additional Topics</h3>

<div class="cart-alt__contents">
<div class="progress-list">
<ul><li><a href="/java-programming/scanner" title="Java Scanner
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Scanner Class</a></li>
<li><a href="/java-programming/typecasting" title="Java
Type Casting"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Type Casting</a></li>
<li><a href="/java-programming/autoboxing-unboxing"
title="Java autoboxing and unboxing"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java autoboxing and unboxing</a></li>
<li><a href="/java-programming/lambda-expression"
title="Java Lambda Expressions"><span class="icon-wrap"><svg class="programiz-icon
progress-list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Lambda Expression</a></li>
<li><a href="/java-programming/generics" title="Java
Generics"><span class="icon-wrap"><svg class="programiz-icon progress-
list__icon"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#check-small"></use></svg></span>Java Generics</a></li>
<li><a href="/java-programming/file" title="Java
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java File Class</a></li>
<li><a href="/java-programming/wrapper" title="Java Wrapper
Class"><span class="icon-wrap"><svg class="programiz-icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Wrapper Class</a></li>
<li><a href="/java-programming/command-line-arguments"
title="Java Command Line Arguments"><span class="icon-wrap"><svg class="programiz-
icon progress-list__icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#check-small"></
use></svg></span>Java Command Line Arguments</a></li>
</ul></div>
</div>
</div>

<style>
#div-gpt-ad-Programizcom37046 {display:none; }
#div-gpt-ad-Programizcom36796 {display: block; width: 300px; height: 250px;
margin: 30px auto;}
@media(min-width: 992px) { #div-gpt-ad-Programizcom37046 {display: block;
width: 728px; height: 90px; margin: 30px auto;} #div-gpt-ad-Programizcom36796
{display: none;}}
</style><div id="div-gpt-ad-Programizcom37046">
</div>

<div id="div-gpt-ad-Programizcom36796">
</div>

<div class="editor-contents">
<hr><h2 id="about">About Java Programming</h2>

<ul><li><strong>Platform independent</strong> - We can write Java code in one


platform (operating system) and run on another platform without any
modification.</li>
<li><strong>Object-oriented</strong> - Java is an object-oriented language.
This helps to make our Java code more flexible and reusable.</li>
<li><strong>Speed</strong> - Well optimized Java code is nearly as fast as
lower-level languages like C++ and much faster than Python, PHP, etc.</li>
</ul><hr><h2 id="why">Why Learn Java?</h2>

<ul><li>Java is a platform-independent language. We can write Java code in one


platform and run it in another platform</li>
<li>Java is a general-purpose language with a wide range of applications.
It's used for developing mobile and desktop applications, big data processing,
embedded systems, and so on.</li>
<li>Java is an object-oriented programming language. It helps in code
reusability.</li>
</ul><hr><h2 id="how">How to learn Java?</h2>

<ul><li><strong>Interactive Java Course</strong> - Want to learn Java by solving


challenges after learning each concept? Enroll in our <a
href="https://programiz.pro/learn/master-java?utm_source=landing-page-
body&amp;utm_campaign=programiz&amp;utm_medium=referral" title="Java Course">Java
Interactive Course</a> for FREE.</li>
<li><strong>Java tutorial from Programiz</strong> - We provide step-by-step
Java tutorials and examples. <a href="/java-programming/hello-world" title="Java
Hello World Program">Get started with Java.</a></li>
<li><strong>Official Java tutorial</strong> - Java documentation is one of
the best programming language documentation. Visit the official <a
href="https://docs.oracle.com/javase/tutorial/" title="Java official document">Java
tutorial.</a></li>
<li><strong>Write a lot of Java code</strong>- The only way you can learn
programming is by writing a lot of code.</li>
</ul><hr><h2 id="resources">Java Resources</h2>

<ul><li><a href="/java-programming/guide" title="Java Guide">What is Java?</a></li>


<li><a href="/java-programming/online-compiler/">Java Online
Compiler</a></li>
<li><a href="/java-programming/examples" title="Java Examples">Java
Examples</a></li>
<li><a href="/java-programming/library" title="Java Library Functions">Java
Library Functions</a></li>
</ul></div>

<!-- Get app link -->

<div class="get-app-link-wrapper">
<a class="get-app-link" href="https://programiz.pro/learn/master-java?
utm_source=right-floating-block&amp;utm_campaign=programiz&amp;utm_medium=referral"
target="_blank" rel="nofollow">
<img class="app-link-items app-logo app-link-items--open-state"
src="//cdn.programiz.com/cdn/farfuture/MtYlOFkrVOnvkBKwjr9-
FzyGYZCliWNSGWSNjaC3Vwo/mtime:1582195806/sites/all/themes/programiz/assets/
sp_logo.svg"><p class="app-link-items app-text app-link-items--closed-state">Try
PRO for FREE</p>
<p class="app-link-items app-text app-link-items--open-state">Learn Java
Interactively</p>
<button class="app-link-items btn app-close-icon app-link-items--open-state"
type="button">
<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button>
</a>
</div>

</div>
</div>
</div>
</div>
</div>
</div>

<footer class="footer"><div class="container">


<div class="row">
<div class="col-sm-12">
<div id="mauticform_wrapper_generalsubscribersformmobile" class="sp-footer-
form d-block d-md-none mauticform_wrapper">
<form autocomplete="false" role="form" method="post"
action="https://email.programiz.com/form/submit?formId=9"
id="mauticform_generalsubscribersformmobile" data-mautic-
form="generalsubscribersformmobile" enctype="multipart/form-data" class="card
card--even-spaced card--shadowed-up card--no-border">
<div class="mauticform-error"
id="mauticform_generalsubscribersformmobile_error"></div>
<div class="mauticform-message"
id="mauticform_generalsubscribersformmobile_message"></div>
<div class="mauticform-innerform">
<div class="footer__form__title">Join our newsletter for the latest
updates.</div>

<div class="mauticform-page-wrapper mauticform-page-1 input-group"


data-mautic-form-page="1">

<div id="mauticform_generalsubscribersformmobile_email1"
class="mauticform-row mauticform-email mauticform-field-1 mauticform-required
input-group" data-validate="email1" data-validation-type="email">
<input id="mauticform_input_generalsubscribersformmobile_email1"
name="mauticform[email1]" value="" placeholder="Enter Email Address*"
class="mauticform-input input-group__control" type="email"><span class="mauticform-
errormsg" style="display: none;">This is required.</span>
</div>

<div id="mauticform_generalsubscribersformmobile_submit"
class="mauticform-row mauticform-button-wrapper mauticform-field-2 input-group">
<button type="submit" name="mauticform[submit]"
id="mauticform_input_generalsubscribersformmobile_submit" value=""
class="mauticform-button input-group__action btn btn--primary">Join</button>
</div>
</div>
</div>

<input type="hidden" name="mauticform[formId]"


id="mauticform_generalsubscribersformmobile_id" value="9"><input type="hidden"
name="mauticform[return]" id="mauticform_generalsubscribersformmobile_return"
value=""><input type="hidden" name="mauticform[formName]"
id="mauticform_generalsubscribersformmobile_name"
value="generalsubscribersformmobile"></form>
</div>
</div>
</div>

<div class="row">
<div class="col-xl-4 col-lg-5 col-md-6 d-none d-md-block">
<div class="footer__content">
<object class="footer__logo"
data="//cdn.programiz.com/sites/all/themes/programiz/assets/logo_white.svg"
type="image/svg+xml"></object>

<div class="mauticform_wrapper"
id="mauticform_wrapper_generalsubscribersform">
<form action="https://email.programiz.com/form/submit?formId=6"
autocomplete="false" class="footer__form" data-mautic-form="generalsubscribersform"
enctype="multipart/form-data" id="mauticform_generalsubscribersform" method="post"
role="form">
<div class="mauticform-error"
id="mauticform_generalsubscribersform_error"></div>
<div class="mauticform-message"
id="mauticform_generalsubscribersform_message"></div>
<div class="mauticform-innerform">
<div class="footer__form__title">Join our newsletter for the latest
updates.</div>
<div class="mauticform-page-wrapper mauticform-page-1 input-group"
data-mautic-form-page="1">
<div class="mauticform-row mauticform-email mauticform-field-1
mauticform-required input-group" data-validate="email1" data-validation-
type="email" id="mauticform_generalsubscribersform_email1">
<input class="mauticform-input input-group__control"
id="mauticform_input_generalsubscribersform_email1" name="mauticform[email1]"
placeholder="Enter Email Address*" type="email" value=""><span class="mauticform-
errormsg" style="display: none;">This is required.</span>
</div>
<div class="mauticform-row mauticform-button-wrapper mauticform-
field-2 input-group" id="mauticform_generalsubscribersform_submit">
<button class="mauticform-button input-group__action btn btn--
primary" id="mauticform_input_generalsubscribersform_submit"
name="mauticform[submit]" type="submit" value="">Join</button>
</div>
</div>
</div>
<input id="mauticform_generalsubscribersform_id"
name="mauticform[formId]" type="hidden" value="6"><input
id="mauticform_generalsubscribersform_return" name="mauticform[return]"
type="hidden" value=""><input id="mauticform_generalsubscribersform_name"
name="mauticform[formName]" type="hidden" value="generalsubscribersform"></form>
</div>
<div class="footer__vendor-btn">
<div class="footer__vendor-btn__row">
<a href="https://play.google.com/store/apps/dev?
id=8227237868464522664&amp;referrer=utm_campaign%3Dprogramiz-footer%26utm_source
%3Dprogramiz-website" title="Programiz Apps on Play Store" rel="noopener"
target="_blank">
<img class="app-download-btn app-download-btn--offset"
src="//cdn.programiz.com/sites/tutorial2program/files/playstore.svg" height="39"
width="138"></a>
</div>

<div class="footer__vendor-btn__row">
<a
href="https://apps.apple.com/us/developer/parewa-labs-pvt-ltd/id1472188188&amp;ct=p
rogramiz-footer&amp;mt=8" title="Programiz Apps on App Store" rel="noopener"
target="_blank">
<img class="app-download-btn"
src="//cdn.programiz.com/sites/all/themes/programiz/assets/appstore.svg"
height="39" width="138"></a>
</div>
</div>
</div>
</div>

<div class="col-lg-2 col-md-3 col-xs-6">


<div class="footer__link-area">
<h4 class="footer__link-area__title">Tutorials</h4>

<ul class="footer__links"><li class="footer__links__nodes"><a class="link-


node" href="/python-programming" title="Python Tutorials">Python 3
Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/javascript"
title="JavaScript Tutorial">JavaScript Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/sql"
title="SQL Tutorials">SQL Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/c-
programming" title="C Tutorial">C Tutorial</a>
</li>
<li class="footer__links__nodes"><a class="link-node" href="/java-
programming" title="Java Tutorial">Java
Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/kotlin-
programming" title="Kotlin Tutorial">Kotlin Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/cpp-
programming" title="C++ Tutorial">C++
Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/swift-
programming" title="Swift Tutorial">Swift
Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/csharp-
programming" title="C# Tutorial">C#
Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/golang"
title="Go Tutorials">Go Tutorial</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/dsa"
title="Data Structures and Algorithms">DSA
Tutorial</a></li>
</ul></div>
</div>

<div class="col-lg-2 col-md-3 col-xs-6">


<div class="footer__link-area">
<h4 class="footer__link-area__title">Examples</h4>

<ul class="footer__links"><li class="footer__links__nodes"><a class="link-


node" href="/python-programming/examples" title="Python Examples">Python
Examples</a></li>
<li class="footer__links__nodes"><a class="link-node"
href="/javascript/examples" title="JavaScript Examples">JavaScript
Examples</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/c-
programming/examples" title="C Examples">C
Examples</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/java-
programming/examples" title="Java Examples">Java Examples</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/kotlin-
programming/examples" title="Kotlin Examples">Kotlin Examples</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/cpp-
programming/examples" title="C++ Examples">C++ Examples</a></li>
</ul></div>
</div>

<div class="col-lg-2 col-md-3 col-xs-6">


<div class="footer__link-area">
<h4 class="footer__link-area__title">Company</h4>

<ul class="footer__links"><li class="footer__links__nodes"><a class="link-


node" id="unic-gdpr" onclick='__tcfapi("openunic");return false;'
style="display:none;cursor:pointer;">Change Ad Consent</a>
</li>
<li class="footer__links__nodes"><a class="link-node" id="unic-ccpa"
onclick="window.__uspapi('openunic')" style="display:none;cursor:pointer;">Do not
sell my data</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/about-us"
title="About us">About</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/advertise"
title="Advertise with us">Advertising</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/privacy-
policy" title="Privacy Policy">Privacy Policy</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/terms-of-
use" title="Terms &amp; Conditions">Terms &amp; Conditions</a></li>
<li class="footer__links__nodes"><a class="link-node" href="/contact"
title="Contact us">Contact</a></li>
<li class="footer__links__nodes"><a title="Blog" href="/blog/"
class="link-node">Blog</a></li>
<li class="footer__links__nodes"><a title="Programiz on Youtube"
href="https://www.youtube.com/channel/UCREFp3D_n8JfcDonlm7Mpyw" class="link-
node">Youtube</a></li>

</ul></div>
</div>

<div class="col-lg-2 col-md-3 col-xs-6">


<div class="footer__link-area">
<h4 class="footer__link-area__title">Apps</h4>

<ul class="footer__links"><li class="footer__links__nodes">


<a class="link-node" href="/learn-python" title="Learn Python:
Programiz" target="_blank" rel="noopener">Learn Python</a>
</li>
<li class="footer__links__nodes">
<a class="link-node" href="/learn-c" title="Learn C Programming:
Programiz" target="_blank" rel="noopener">Learn C Programming</a>
</li>
<li class="footer__links__nodes">
<a class="link-node" href="/learn-java" title="Learn Java: Programiz"
target="_blank" rel="noopener">Learn Java</a>
</li>
</ul></div>
</div>
</div>

<div class="sp-brand-area d-block d-md-none">


<div class="d-flex justify-content-center">
<img class="sp-brand-area__logo"
src="//cdn.programiz.com/cdn/farfuture/DMD3csF8iiWLb-ksf11g-
xTaCduxp9UlNwB0FYoIXOA/mtime:1582195806/sites/all/themes/programiz/assets/
logo_white.svg" width="84" height="26"></div>

<div class="d-flex justify-content-center">


<div class="footer__vendor-btn__row">
<a href="https://play.google.com/store/apps/dev?
id=8227237868464522664&amp;referrer=utm_campaign%3Dprogramiz-footer%26utm_source
%3Dprogramiz-website" title="Programiz Apps on Play Store" target="_blank"
rel="noopener">
<img class="app-download-btn app-download-btn--offset"
src="//cdn.programiz.com/cdn/farfuture/d8oXG2v0dCLdIbQKcMRjJxSY96Ec6FBG-
qAVJkrDFDU/mtime:1592900945/sites/all/themes/programiz/assets/playstore.svg"
height="39" width="138"></a>
</div>

<div class="footer__vendor-btn__row">
<a
href="https://apps.apple.com/us/developer/parewa-labs-pvt-ltd/id1472188188&amp;ct=p
rogramiz-footer&amp;mt=8" title="Programiz Apps on App Store" target="_blank"
rel="noopener">
<img class="app-download-btn"
src="//cdn.programiz.com/cdn/farfuture/G0ZBnGKr9e0xtuBVtFKkEKiLZtcp92YYJhqcPpBgFXU/
mtime:1592900945/sites/all/themes/programiz/assets/appstore.svg" height="39"
width="138"></a>
</div>
</div>
</div>

<div class="footer__end">
<p class="copyright-text">© Parewa Labs Pvt. Ltd. All rights reserved.</p>

<div class="social-icons">
<a class="social-icons__links" href="https://www.facebook.com/programiz"
title="Programiz on Facebook"><svg class="programiz-icon programiz-icon--
small"><use xlink:href="/sites/all/themes/programiz/assets/feather-
sprite.svg#facebook"></use></svg></a>
<a class="social-icons__links" href="https://www.instagram.com/_programiz/"
title="Programiz on Instagram">
<svg class="programiz-icon programiz-icon--small"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#instagram"></
use></svg></a>
<a class="social-icons__links"
href="https://www.linkedin.com/company/programiz" title="Programiz on Linkedin">
<svg class="programiz-icon programiz-icon--small"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#linkedin"></
use></svg></a>
<a class="social-icons__links" href="https://twitter.com/programiz"
title="Programiz on Twitter">
<svg class="programiz-icon programiz-icon--small"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#twitter"></
use></svg></a>
</div>
</div>
</div>

<script>
function advagg_mod_2() {
// Count how many times this function is called.
advagg_mod_2.count = ++advagg_mod_2.count || 1;
try {
if (advagg_mod_2.count <= 40) {

(function waitGEO() {
var readyGEO;
if (window['UnicI'] && window['UnicI'].geo && window['UnicI'].geo !== '-') {
readyGEO = true;
console.log(window['UnicI'].geo);
if (window['UnicI'].geo === 'EU') {
if (document.getElementById("unic-gdpr")) {
document.getElementById("unic-gdpr").style.display = 'block';
}
}
if (window['UnicI'].geo === 'CA') {
if (document.getElementById("unic-ccpa")) {
document.getElementById("unic-ccpa").style.display = 'block';
}
}
}
if (!readyGEO) {
setTimeout(waitGEO, 200);
}
})();

// Set this to 100 so that this function only runs once.


advagg_mod_2.count = 100;
}
}
catch(e) {
if (advagg_mod_2.count >= 40) {
// Throw the exception if this still fails after running 40 times.
throw e;
}
else {
// Try again in 250 ms.
window.setTimeout(advagg_mod_2, 250);
}
}
}
function advagg_mod_2_check() {
if (window.jQuery && window.Drupal && window.Drupal.settings) {
advagg_mod_2();
}
else {
window.setTimeout(advagg_mod_2_check, 250);
}
}
advagg_mod_2_check();</script><div class="pop-up-sale">
<div class="pop-up-block">
<button class="btn btn--skeleton pop-up-block__close">
<svg class="programiz-icon"><use
xlink:href="/sites/all/themes/programiz/assets/feather-sprite.svg#x"></use></
svg></button>

<h3 class="pop-up-block__header-summer">
60% OFF
</h3>

<h3 class="pop-up-block__subheader-summer">
Sep 23 to 30
</h3>

<div class="pop-up-block--cta-summer-block">
<p class="pop-up-block--cta-summer-block__info">
Take advantage of Price Hike SALE<span></span> on Programiz PRO.
</p>

<a class="btn btn--primary btn--xlarge d-flex align-items-center pop-


up-block--cta-summer-block__cta" title="Try Out Programiz Pro for Free"
rel="nofollow" href="https://programiz.pro/offer/price-up?utm_source=popup-
programiz&amp;utm_medium=popup&amp;utm_campaign=price-increase-sale__popup-
programiz-web__September__60">
<span for="" class="btn__label">Claim Discount</span></a>
</div>
</div>
</div>

<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TKXT7MH"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
</footer></main>
<script type="text/javascript"
src="//cdn.programiz.com/sites/tutorial2program/files/advagg_js/js__IRKvqhfnH28lfKS
oojb2Zt5yNFztv71Ttm-n2WHgYGE__tDmd9jh-
9E4CQtZulyGAmhfNZBJm8vVdgIYG4DiISCk__DdD1UdeKEXumScAwIBnmVuP-
kOInkxJzYmsYbmVxHfk.js" defer="defer"></script>
<script type="text/javascript"
src="//cdn.programiz.com/sites/tutorial2program/files/advagg_js/js__--
0Z8Ko2Ouantt4UUbDD1guuMHUWwLlSlrZ6GNz8h-
g__PK2cfMIA5VvN9akHYyfRTdjVyQ6O1YKYlNcDqBdggGQ__DdD1UdeKEXumScAwIBnmVuP-
kOInkxJzYmsYbmVxHfk.js" defer="defer"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
function advagg_mod_4(){advagg_mod_4.count=++advagg_mod_4.count||
1;try{if(advagg_mod_4.count<=40){var base_path='/';var
module_path='sites/all/modules/programiz_rate_share';advagg_mod_4.count=100;}}
catch(e){if(advagg_mod_4.count>=40){throw e;}
else{window.setTimeout(advagg_mod_4,250);}}}
function advagg_mod_4_check()
{if(window.jQuery&&window.Drupal&&window.Drupal.settings){advagg_mod_4();}
else{window.setTimeout(advagg_mod_4_check,250);}}
advagg_mod_4_check();
//--><!]]>
</script>
</body>

</html>

You might also like