CINXE.COM

Programmeren in Java - Wikibooks

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="nl" dir="ltr"> <head> <meta charset="UTF-8"> <title>Programmeren in Java - Wikibooks</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )nlwikibooksmwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":[",\t.",".\t,"],"wgDigitTransformTable":["",""], "wgDefaultDateFormat":"dmy","wgMonthNames":["","januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],"wgRequestId":"7e88e65c-5402-4139-b65d-6ab47fa3a453","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Programmeren_in_Java","wgTitle":"Programmeren in Java","wgCurRevisionId":388531,"wgRevisionId":388531,"wgArticleId":2384,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Boeken met infobox","Fase3","Boeken met een fasebeoordeling","Voorblad","Boeken in Wikibooks","Programmeertaal"],"wgPageViewLanguage":"nl","wgPageContentLanguage":"nl","wgPageContentModel":"wikitext","wgRelevantPageName":"Programmeren_in_Java","wgRelevantArticleId":2384,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikibooks","wgCiteReferencePreviewsActive":true, "wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"nl","pageLanguageDir":"ltr","pageVariantFallbacks":"nl"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":5000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q251","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"wgSiteNoticeId":"2.5"};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.wikimediamessages.styles":"ready", "ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready","ext.dismissableSiteNotice.styles":"ready"};RLPAGEMODULES=["site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking","ext.dismissableSiteNotice"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=nl&amp;modules=ext.dismissableSiteNotice.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=nl&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=nl&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Programmeren in Java - Wikibooks"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//nl.m.wikibooks.org/wiki/Programmeren_in_Java"> <link rel="alternate" type="application/x-wiki" title="Bewerken" href="/w/index.php?title=Programmeren_in_Java&amp;action=edit"> <link rel="icon" href="/static/favicon/wikibooks.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikibooks (nl)"> <link rel="EditURI" type="application/rsd+xml" href="//nl.wikibooks.org/w/api.php?action=rsd"> <link rel="canonical" href="https://nl.wikibooks.org/wiki/Programmeren_in_Java"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.nl"> <link rel="alternate" type="application/atom+xml" title="Wikibooks Atom-feed" href="/w/index.php?title=Speciaal:RecenteWijzigingen&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Programmeren_in_Java rootpage-Programmeren_in_Java skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Naar inhoud springen</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Hoofdmenu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Hoofdmenu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Hoofdmenu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">naar zijbalk verplaatsen</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">verbergen</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigatie </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Wikibooks" class="mw-list-item"><a href="/wiki/Hoofdpagina"><span>Wikibooks</span></a></li><li id="n-Wikijunior" class="mw-list-item"><a href="/wiki/Wikijunior"><span>Wikijunior</span></a></li><li id="n-Wikiversiteit" class="mw-list-item"><a href="/wiki/Wikiversity-Nederlands"><span>Wikiversiteit</span></a></li><li id="n-Kookboek" class="mw-list-item"><a href="/wiki/Kookboek"><span>Kookboek</span></a></li><li id="n-Doneer" class="mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_nl.wikibooks.org&amp;uselang=nl"><span>Doneer</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikibooks:Gebruikersportaal" title="Informatie over het project: wat u kunt doen, waar u dingen kunt vinden"><span>Gebruikersportaal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Speciaal:RecenteWijzigingen" title="Een lijst met recente wijzigingen in deze wiki. [r]" accesskey="r"><span>Recente wijzigingen</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Speciaal:Willekeurig" title="Een willekeurige pagina bekijken [x]" accesskey="x"><span>Willekeurige module</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Wikibooks:Help" title="Hulpinformatie over deze wiki"><span>Hulp</span></a></li><li id="n-Lerarenkamer" class="mw-list-item"><a href="/wiki/Wikibooks:Lerarenkamer"><span>Lerarenkamer</span></a></li><li id="n-Zandbak" class="mw-list-item"><a href="/wiki/Wikibooks:Zandbak"><span>Zandbak</span></a></li> </ul> </div> </div> <div id="p-zusterprojecten" class="vector-menu mw-portlet mw-portlet-zusterprojecten" > <div class="vector-menu-heading"> zusterprojecten </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Wikinieuws" class="mw-list-item"><a href="https://nl.wikinews.org/wiki/"><span>Wikinieuws</span></a></li><li id="n-Wikipedia" class="mw-list-item"><a href="https://nl.wikipedia.org/wiki/Hoofdpagina"><span>Wikipedia</span></a></li><li id="n-Wikiquote" class="mw-list-item"><a href="https://nl.wikiquote.org/wiki/Hoofdpagina"><span>Wikiquote</span></a></li><li id="n-Wikisource" class="mw-list-item"><a href="https://nl.wikisource.org/wiki/Hoofdpagina"><span>Wikisource</span></a></li><li id="n-WikiWoordenboek" class="mw-list-item"><a href="https://nl.wiktionary.org/wiki/Hoofdpagina"><span>WikiWoordenboek</span></a></li><li id="n-Commons" class="mw-list-item"><a href="https://commons.wikimedia.org/wiki/Hoofdpagina"><span>Commons</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Hoofdpagina" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikibooks.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikibooks" src="/static/images/mobile/copyright/wikibooks-wordmark-vi.svg" style="width: 7.5em; height: 0.9375em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Speciaal:Zoeken" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Doorzoek deze wiki [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Zoeken</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Doorzoek Wikibooks" aria-label="Doorzoek Wikibooks" autocapitalize="sentences" title="Doorzoek deze wiki [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Speciaal:Zoeken"> </div> <button class="cdx-button cdx-search-input__end-button">Zoeken</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Persoonlijke hulpmiddelen"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Uiterlijk"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="De lettergrootte, breedte en kleur van de pagina wijzigen" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Uiterlijk" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Uiterlijk</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_nl.wikibooks.org&amp;uselang=nl" class=""><span>Doneren</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Speciaal:GebruikerAanmaken&amp;returnto=Programmeren+in+Java" title="Registreer u vooral en meld u aan. Dit is echter niet verplicht." class=""><span>Account aanmaken</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Speciaal:Aanmelden&amp;returnto=Programmeren+in+Java" title="U wordt van harte uitgenodigd om aan te melden, maar dit is niet verplicht [o]" accesskey="o" class=""><span>Aanmelden</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Meer opties" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Persoonlijke hulpmiddelen" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Persoonlijke hulpmiddelen</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="Gebruikersmenu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_nl.wikibooks.org&amp;uselang=nl"><span>Doneren</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speciaal:GebruikerAanmaken&amp;returnto=Programmeren+in+Java" title="Registreer u vooral en meld u aan. Dit is echter niet verplicht."><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Account aanmaken</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Speciaal:Aanmelden&amp;returnto=Programmeren+in+Java" title="U wordt van harte uitgenodigd om aan te melden, maar dit is niet verplicht [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Aanmelden</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pagina&#039;s voor uitgelogde redacteuren <a href="/wiki/Help:Inleiding" aria-label="Meer leren over bewerken"><span>meer lezen</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Speciaal:MijnBijdragen" title="Een lijst van bewerkingen gemaakt door dit IP-adres [y]" accesskey="y"><span>Bijdragen</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Speciaal:MijnOverleg" title="Overlegpagina van de anonieme gebruiker van dit IP-adres [n]" accesskey="n"><span>Overleg</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><div id="mw-dismissablenotice-anonplace"></div><script>(function(){var node=document.getElementById("mw-dismissablenotice-anonplace");if(node){node.outerHTML="\u003Cdiv class=\"mw-dismissable-notice\"\u003E\u003Cdiv class=\"mw-dismissable-notice-close\"\u003E[\u003Ca tabindex=\"0\" role=\"button\"\u003Everberg\u003C/a\u003E]\u003C/div\u003E\u003Cdiv class=\"mw-dismissable-notice-body\"\u003E\u003C!-- CentralNotice --\u003E\u003Cdiv id=\"localNotice\" data-nosnippet=\"\"\u003E\u003Cdiv class=\"anonnotice\" lang=\"nl\" dir=\"ltr\"\u003E\u003Cdiv class=\"plainlinks\" style=\"text-align:center; font-size:80%\"\u003E\u003Ci\u003EMet \u003Ca class=\"external text\" href=\"https://donate.wikimedia.org/wiki/FAQ/nl#Waarom_zou_ik_doneren_en_waar_gaat_mijn_geld_naartoe?\"\u003Euw steun\u003C/a\u003E houden wij Wikibooks online!\u003C/i\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E\u003C/div\u003E";}}());</script></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Inhoud" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Inhoud</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">naar zijbalk verplaatsen</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">verbergen</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Top</div> </a> </li> <li id="toc-Inhoud" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Inhoud"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Inhoud</span> </div> </a> <button aria-controls="toc-Inhoud-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Inhoud-subkopje inklappen</span> </button> <ul id="toc-Inhoud-sublist" class="vector-toc-list"> <li id="toc-Basis" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Basis"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Basis</span> </div> </a> <ul id="toc-Basis-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Klassen" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Klassen"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Klassen</span> </div> </a> <ul id="toc-Klassen-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Collections" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Collections"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Collections</span> </div> </a> <ul id="toc-Collections-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Design_Patterns" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Design_Patterns"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4</span> <span>Design Patterns</span> </div> </a> <ul id="toc-Design_Patterns-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Appendices" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Appendices"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5</span> <span>Appendices</span> </div> </a> <ul id="toc-Appendices-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Inhoud" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Inhoudsopgave omschakelen" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Inhoudsopgave omschakelen</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Programmeren in Java</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Ga naar een artikel in een andere taal. Beschikbaar in 27 talen" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-27" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">27 talen</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikibooks.org/wiki/%D8%A8%D8%B1%D9%85%D8%AC%D8%A9_%D8%AC%D8%A7%D9%81%D8%A7" title="برمجة جافا – Arabisch" lang="ar" hreflang="ar" data-title="برمجة جافا" data-language-autonym="العربية" data-language-local-name="Arabisch" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikibooks.org/wiki/Java" title="Java – Azerbeidzjaans" lang="az" hreflang="az" data-title="Java" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbeidzjaans" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-bn mw-list-item"><a href="https://bn.wikibooks.org/wiki/%E0%A6%9C%E0%A6%BE%E0%A6%AD%E0%A6%BE_%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A7%8B%E0%A6%97%E0%A7%8D%E0%A6%B0%E0%A6%BE%E0%A6%AE%E0%A6%BF%E0%A6%82" title="জাভা প্রোগ্রামিং – Bengaals" lang="bn" hreflang="bn" data-title="জাভা প্রোগ্রামিং" data-language-autonym="বাংলা" data-language-local-name="Bengaals" class="interlanguage-link-target"><span>বাংলা</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikibooks.org/wiki/Java" title="Java – Tsjechisch" lang="cs" hreflang="cs" data-title="Java" data-language-autonym="Čeština" data-language-local-name="Tsjechisch" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikibooks.org/wiki/Java" title="Java – Deens" lang="da" hreflang="da" data-title="Java" data-language-autonym="Dansk" data-language-local-name="Deens" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikibooks.org/wiki/Java_Standard" title="Java Standard – Duits" lang="de" hreflang="de" data-title="Java Standard" data-language-autonym="Deutsch" data-language-local-name="Duits" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikibooks.org/wiki/Java_Programming" title="Java Programming – Engels" lang="en" hreflang="en" data-title="Java Programming" data-language-autonym="English" data-language-local-name="Engels" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikibooks.org/wiki/Programaci%C3%B3n_en_Java" title="Programación en Java – Spaans" lang="es" hreflang="es" data-title="Programación en Java" data-language-autonym="Español" data-language-local-name="Spaans" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikibooks.org/wiki/Java" title="Java – Fins" lang="fi" hreflang="fi" data-title="Java" data-language-autonym="Suomi" data-language-local-name="Fins" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-fr badge-Q17437796 badge-featuredarticle mw-list-item" title="uitgelicht artikel"><a href="https://fr.wikibooks.org/wiki/Programmation_Java" title="Programmation Java – Frans" lang="fr" hreflang="fr" data-title="Programmation Java" data-language-autonym="Français" data-language-local-name="Frans" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-he mw-list-item"><a href="https://he.wikibooks.org/wiki/Java" title="Java – Hebreeuws" lang="he" hreflang="he" data-title="Java" data-language-autonym="עברית" data-language-local-name="Hebreeuws" class="interlanguage-link-target"><span>עברית</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikibooks.org/wiki/Java_programoz%C3%A1s" title="Java programozás – Hongaars" lang="hu" hreflang="hu" data-title="Java programozás" data-language-autonym="Magyar" data-language-local-name="Hongaars" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-is mw-list-item"><a href="https://is.wikibooks.org/wiki/Java" title="Java – IJslands" lang="is" hreflang="is" data-title="Java" data-language-autonym="Íslenska" data-language-local-name="IJslands" class="interlanguage-link-target"><span>Íslenska</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikibooks.org/wiki/Java" title="Java – Italiaans" lang="it" hreflang="it" data-title="Java" data-language-autonym="Italiano" data-language-local-name="Italiaans" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikibooks.org/wiki/Java" title="Java – Japans" lang="ja" hreflang="ja" data-title="Java" data-language-autonym="日本語" data-language-local-name="Japans" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikibooks.org/wiki/Java" title="Java – Georgisch" lang="ka" hreflang="ka" data-title="Java" data-language-autonym="ქართული" data-language-local-name="Georgisch" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikibooks.org/wiki/%E0%B4%9C%E0%B4%BE%E0%B4%B5_%E0%B4%AA%E0%B5%8D%E0%B4%B0%E0%B5%8B%E0%B4%97%E0%B5%8D%E0%B4%B0%E0%B4%BE%E0%B4%AE%E0%B4%BF%E0%B4%99%E0%B5%8D%E0%B4%99%E0%B5%8D" title="ജാവ പ്രോഗ്രാമിങ്ങ് – Malayalam" lang="ml" hreflang="ml" data-title="ജാവ പ്രോഗ്രാമിങ്ങ്" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikibooks.org/wiki/Java" title="Java – Noors" lang="no" hreflang="no" data-title="Java" data-language-autonym="Norsk" data-language-local-name="Noors" class="interlanguage-link-target"><span>Norsk</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikibooks.org/wiki/Java" title="Java – Pools" lang="pl" hreflang="pl" data-title="Java" data-language-autonym="Polski" data-language-local-name="Pools" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikibooks.org/wiki/Java" title="Java – Portugees" lang="pt" hreflang="pt" data-title="Java" data-language-autonym="Português" data-language-local-name="Portugees" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikibooks.org/wiki/Java" title="Java – Russisch" lang="ru" hreflang="ru" data-title="Java" data-language-autonym="Русский" data-language-local-name="Russisch" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sq mw-list-item"><a href="https://sq.wikibooks.org/wiki/Java" title="Java – Albanees" lang="sq" hreflang="sq" data-title="Java" data-language-autonym="Shqip" data-language-local-name="Albanees" class="interlanguage-link-target"><span>Shqip</span></a></li><li class="interlanguage-link interwiki-ta mw-list-item"><a href="https://ta.wikibooks.org/wiki/%E0%AE%9C%E0%AE%BE%E0%AE%B5%E0%AE%BE" title="ஜாவா – Tamil" lang="ta" hreflang="ta" data-title="ஜாவா" data-language-autonym="தமிழ்" data-language-local-name="Tamil" class="interlanguage-link-target"><span>தமிழ்</span></a></li><li class="interlanguage-link interwiki-th mw-list-item"><a href="https://th.wikibooks.org/wiki/%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%E0%B8%88%E0%B8%B2%E0%B8%A7%E0%B8%B2" title="ภาษาจาวา – Thai" lang="th" hreflang="th" data-title="ภาษาจาวา" data-language-autonym="ไทย" data-language-local-name="Thai" class="interlanguage-link-target"><span>ไทย</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikibooks.org/wiki/Java" title="Java – Turks" lang="tr" hreflang="tr" data-title="Java" data-language-autonym="Türkçe" data-language-local-name="Turks" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikibooks.org/wiki/%D0%9E%D1%81%D0%B2%D0%BE%D1%8E%D1%94%D0%BC%D0%BE_Java" title="Освоюємо Java – Oekraïens" lang="uk" hreflang="uk" data-title="Освоюємо Java" data-language-autonym="Українська" data-language-local-name="Oekraïens" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikibooks.org/wiki/Java" title="Java – Chinees" lang="zh" hreflang="zh" data-title="Java" data-language-autonym="中文" data-language-local-name="Chinees" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q251#sitelinks-wikibooks" title="Taalkoppelingen bewerken" class="wbc-editpage">Koppelingen bewerken</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Naamruimten"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Programmeren_in_Java" title="Inhoudspagina bekijken [c]" accesskey="c"><span>Module</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Overleg:Programmeren_in_Java" rel="discussion" title="Overleg over deze pagina [t]" accesskey="t"><span>Overleg</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Taalvariant wijzigen" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Nederlands</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Weergaven"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Programmeren_in_Java"><span>Lezen</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit" title="Deze pagina bewerken [e]" accesskey="e"><span>Bewerken</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;action=history" title="Eerdere versies van deze pagina [h]" accesskey="h"><span>Geschiedenis weergeven</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Paginahulpmiddelen"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Hulpmiddelen" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Hulpmiddelen</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Hulpmiddelen</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">naar zijbalk verplaatsen</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">verbergen</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="Meer opties" > <div class="vector-menu-heading"> Handelingen </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Programmeren_in_Java"><span>Lezen</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit" title="Deze pagina bewerken [e]" accesskey="e"><span>Bewerken</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;action=history"><span>Geschiedenis weergeven</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> Algemeen </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Speciaal:VerwijzingenNaarHier/Programmeren_in_Java" title="Lijst met alle pagina&#039;s die naar deze pagina verwijzen [j]" accesskey="j"><span>Links naar deze pagina</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Speciaal:RecenteWijzigingenGelinkt/Programmeren_in_Java" rel="nofollow" title="Recente wijzigingen in pagina&#039;s waar deze pagina naar verwijst [k]" accesskey="k"><span>Gerelateerde wijzigingen</span></a></li><li id="t-upload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=nl" title="Bestanden uploaden [u]" accesskey="u"><span>Bestand uploaden</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Speciaal:SpecialePaginas" title="Lijst met alle speciale pagina&#039;s [q]" accesskey="q"><span>Speciale pagina's</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;oldid=388531" title="Permanente koppeling naar deze versie van deze pagina"><span>Permalink</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;action=info" title="Meer informatie over deze pagina"><span>Paginagegevens</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Speciaal:Citeren&amp;page=Programmeren_in_Java&amp;id=388531&amp;wpFormIdentifier=titleform" title="Informatie over hoe u deze pagina kunt citeren"><span>Citeer dit artikel</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Speciaal:UrlShortener&amp;url=https%3A%2F%2Fnl.wikibooks.org%2Fwiki%2FProgrammeren_in_Java"><span>Verkorte URL verkrijgen</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Speciaal:QrCode&amp;url=https%3A%2F%2Fnl.wikibooks.org%2Fwiki%2FProgrammeren_in_Java"><span>QR-code downloaden</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Afdrukken/exporteren </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Speciaal:Boek&amp;bookcmd=book_creator&amp;referer=Programmeren+in+Java"><span>Boek aanmaken</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Speciaal:DownloadAsPdf&amp;page=Programmeren_in_Java&amp;action=show-download-screen"><span>Downloaden als PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Programmeren_in_Java&amp;printable=yes" title="Printvriendelijke versie van deze pagina [p]" accesskey="p"><span>Afdrukversie</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In andere projecten </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:Java_(programming_language)" hreflang="en"><span>Wikimedia Commons</span></a></li><li class="wb-otherproject-link wb-otherproject-wikipedia mw-list-item"><a href="https://nl.wikipedia.org/wiki/Java_(programmeertaal)" hreflang="nl"><span>Wikipedia</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q251" title="Koppeling naar item in verbonden gegevensrepository [g]" accesskey="g"><span>Wikidata-item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Paginahulpmiddelen"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Uiterlijk"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Uiterlijk</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">naar zijbalk verplaatsen</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">verbergen</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">Uit Wikibooks</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="nl" dir="ltr"><table class="noprint bookInfobox"><tbody><tr> <td> <div style="position: relative; height: 30px; width: 30px; overflow: hidden;"><div style="position: absolute; top: 0; left: 0; font-size: 100px; height: 30px; width: 30px; overflow: hidden; line-height: 100px; z-index: 3;"><a href="/wiki/Wikibooks:Infobox/Programmeren_in_Java" title="Wikibooks:Infobox/Programmeren in Java">___</a></div> <div style="position: absolute; top: 0; left: 0; z-index: 2;"><span typeof="mw:File"><a href="/wiki/Bestand:Messagebox_info.png" class="mw-file-description" title="Wikibooks:Infobox/Programmeren in Java"><img alt="Wikibooks:Infobox/Programmeren in Java" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Messagebox_info.png/30px-Messagebox_info.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Messagebox_info.png/45px-Messagebox_info.png 1.5x, //upload.wikimedia.org/wikipedia/commons/7/7a/Messagebox_info.png 2x" data-file-width="48" data-file-height="48" /></a></span></div></div> </td><td> <div style="position: relative; height: 30px; width: 30px; overflow: hidden;"><div style="position: absolute; top: 0; left: 0; font-size: 100px; height: 30px; width: 30px; overflow: hidden; line-height: 100px; z-index: 3;"><a href="/wiki/Programmeren_in_Java/Printversie" title="Programmeren in Java/Printversie">___</a></div> <div style="position: absolute; top: 0; left: 0; z-index: 2;"><span typeof="mw:File"><a href="/wiki/Bestand:Exquisite-print_printer.png" class="mw-file-description" title="Programmeren in Java/Printversie"><img alt="Programmeren in Java/Printversie" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/89/Exquisite-print_printer.png/30px-Exquisite-print_printer.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/89/Exquisite-print_printer.png/45px-Exquisite-print_printer.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/89/Exquisite-print_printer.png/60px-Exquisite-print_printer.png 2x" data-file-width="128" data-file-height="128" /></a></span></div></div> </td> </tr></tbody></table> <p><b>Wat is Java?</b> Java is een objectgeoriënteerde (OO) taal. Dit wil zeggen dat je alles beschrijft zoals in het dagelijkse leven. Je hebt objecten, en deze objecten bezitten eigenschappen (<i>variabelen</i>) en kunnen handelingen verrichten (<i>methoden</i>). Meestal schermt men in Java de variabelen en de implementatie van elk object af van de buitenwereld (<i>data hiding</i> en <i>encapsulatie</i>). </p><p>Java is tegenwoordig een van de populairste programmeertalen voor zowel opleiding als praktische uitvoering. Dankzij de uitgebreide API en de platformonafhankelijkheid is Java zeer toegankelijk als basis om de concepten van objectgeoriënteerd programmeren verder uit te diepen. </p><p>Java is een gecompileerde, maar platformonafhankelijke taal. Programmacode wordt naar een speciale binaire <i>bytecode</i> omgezet die door een <i>Java Virtual Machine</i> (JVM) wordt uitgevoerd. Elk programma hoeft maar één keer gecompileerd te worden om op verschillende met JVM uitgeruste systemen te draaien. Dit is meteen de sterkte en de zwakte van Java. De JVM leest de bytecode in en zet deze om naar platformafhankelijke acties, dit vraagt tijd, Java is dus niet de snelste taal. Maar programma's in Java werken wel op elk besturingssysteem zonder dat je de code moet aanpassen of gewoon volledig moet hercoderen (in tegenstelling tot talen als <a href="https://nl.wikipedia.org/wiki/C%2B%2B" class="extiw" title="w:C++">C++</a> of <a href="https://nl.wikipedia.org/wiki/Objective-C" class="extiw" title="w:Objective-C">Objective-C</a>). </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Inhoud">Inhoud</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit&amp;section=1" title="Bewerk dit kopje: Inhoud"><span>bewerken</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li><a href="/wiki/Programmeren_in_Java/Inleiding" title="Programmeren in Java/Inleiding">Inleiding</a></li> <li><a href="/wiki/Programmeren_in_Java/Installatie" title="Programmeren in Java/Installatie">Installatie</a></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Hulpmiddelen&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Hulpmiddelen (de pagina bestaat niet)">Hulpmiddelen</a></li></ol> <div class="mw-heading mw-heading3"><h3 id="Basis">Basis</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit&amp;section=2" title="Bewerk dit kopje: Basis"><span>bewerken</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li><a href="/wiki/Programmeren_in_Java/Basis" title="Programmeren in Java/Basis">Basis</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Variabelen" title="Programmeren in Java/Variabelen">Variabelen</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Booleaanse_logica" title="Programmeren in Java/Booleaanse logica">Booleaanse logica</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Conditionele_blokken" title="Programmeren in Java/Conditionele blokken">Conditionele blokken</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 24 april 2021"><img alt="Goed ontwikkeld. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Lussen" title="Programmeren in Java/Lussen">Lussen</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 24 februari 2021"><img alt="Goed ontwikkeld. Revisiedatum: 24 februari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Arrays" title="Programmeren in Java/Arrays">Arrays</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 30 december 2020"><img alt="Goed ontwikkeld. Revisiedatum: 30 december 2020" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Methoden" title="Programmeren in Java/Methoden">Methoden</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Strings" title="Programmeren in Java/Strings">Strings</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Commandoregelargumenten" title="Programmeren in Java/Commandoregelargumenten">Commandoregelargumenten</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 24 februari 2021"><img alt="Goed ontwikkeld. Revisiedatum: 24 februari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Invoer_van_een_toetstenbord&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Invoer van een toetstenbord (de pagina bestaat niet)">Invoer van een toetstenbord</a></li> <li><a href="/wiki/Programmeren_in_Java/Exceptions" title="Programmeren in Java/Exceptions">Exceptions</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/GUI" title="Programmeren in Java/GUI">GUI</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/In-_%26_uitvoer" title="Programmeren in Java/In- &amp; uitvoer">In- &amp; uitvoer</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 24 april 2021"><img alt="Nog vrijwel niets. Revisiedatum: 24 april 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li></ol> <div class="mw-heading mw-heading3"><h3 id="Klassen">Klassen</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit&amp;section=3" title="Bewerk dit kopje: Klassen"><span>bewerken</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li><a href="/wiki/Programmeren_in_Java/Introductie_in_klassen" title="Programmeren in Java/Introductie in klassen">Introductie in klassen</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 19 januari 2021"><img alt="Goed ontwikkeld. Revisiedatum: 19 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Klassen" title="Programmeren in Java/Klassen">Klassen</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:50_percent.svg" class="mw-file-description" title="Redelijk ontwikkeld. Revisiedatum: 22 januari 2021"><img alt="Redelijk ontwikkeld. Revisiedatum: 22 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/eb/50_percent.svg/9px-50_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/eb/50_percent.svg/14px-50_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/eb/50_percent.svg/18px-50_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Package" title="Programmeren in Java/Package">Package</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 28 januari 2021"><img alt="Goed ontwikkeld. Revisiedatum: 28 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Private_en_Public" title="Programmeren in Java/Private en Public">Private en Public</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 27 december 2020"><img alt="Goed ontwikkeld. Revisiedatum: 27 december 2020" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Getters_en_Setters" title="Programmeren in Java/Getters en Setters">Getters en Setters</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 19 januari 2021"><img alt="Goed ontwikkeld. Revisiedatum: 19 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Static" title="Programmeren in Java/Static">Static</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 16 maart 2021"><img alt="Goed ontwikkeld. Revisiedatum: 16 maart 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Overerving" title="Programmeren in Java/Overerving">Overerving</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:25_percent.svg" class="mw-file-description" title="In ontwikkeling. Revisiedatum: 20 januari 2007"><img alt="In ontwikkeling. Revisiedatum: 20 januari 2007" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/25_percent.svg/9px-25_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/25_percent.svg/14px-25_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/ce/25_percent.svg/18px-25_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Protected&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Protected (de pagina bestaat niet)">Protected</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 22 januari 2021"><img alt="Nog vrijwel niets. Revisiedatum: 22 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Abstracte&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Abstracte (de pagina bestaat niet)">Abstract</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 22 januari 2021"><img alt="Nog vrijwel niets. Revisiedatum: 22 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Interfaces&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Interfaces (de pagina bestaat niet)">Interfaces</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 19 januari 2021"><img alt="Nog vrijwel niets. Revisiedatum: 19 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Enums" title="Programmeren in Java/Enums">Enums</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 15 augustus 2020"><img alt="Goed ontwikkeld. Revisiedatum: 15 augustus 2020" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Generics" title="Programmeren in Java/Generics">Generics</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 19 januari 2021"><img alt="Nog vrijwel niets. Revisiedatum: 19 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/wiki/Programmeren_in_Java/Boxing_en_Unboxing" title="Programmeren in Java/Boxing en Unboxing">Boxing en Unboxing</a> <span typeof="mw:File"><a href="/wiki/Bestand:75_percent.svg" class="mw-file-description" title="Goed ontwikkeld. Revisiedatum: 22 januari 2021"><img alt="Goed ontwikkeld. Revisiedatum: 22 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/9px-75_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/14px-75_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/75_percent.svg/18px-75_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Optional&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Optional (de pagina bestaat niet)">Optional</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 21 december 2020"><img alt="Nog vrijwel niets. Revisiedatum: 21 december 2020" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Functionele_interfaces&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Functionele interfaces (de pagina bestaat niet)">Functionele interfaces</a> <span class="mw-default-size" typeof="mw:File"><a href="/wiki/Bestand:00_percent.svg" class="mw-file-description" title="Nog vrijwel niets. Revisiedatum: 19 januari 2021"><img alt="Nog vrijwel niets. Revisiedatum: 19 januari 2021" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/9px-00_percent.svg.png" decoding="async" width="9" height="9" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/14px-00_percent.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/60/00_percent.svg/18px-00_percent.svg.png 2x" data-file-width="9" data-file-height="9" /></a></span></li></ol> <div class="mw-heading mw-heading3"><h3 id="Collections">Collections</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit&amp;section=4" title="Bewerk dit kopje: Collections"><span>bewerken</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li><a href="/wiki/Programmeren_in_Java/Collections" title="Programmeren in Java/Collections">Collections</a></li> <li><a href="/wiki/Programmeren_in_Java/List" title="Programmeren in Java/List">List</a></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Set&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Set (de pagina bestaat niet)">Set</a></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Queue&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Queue (de pagina bestaat niet)">Queue</a></li> <li><a href="/wiki/Programmeren_in_Java/Map" title="Programmeren in Java/Map">Map</a></li></ol> <div class="mw-heading mw-heading3"><h3 id="Design_Patterns">Design Patterns</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit&amp;section=5" title="Bewerk dit kopje: Design Patterns"><span>bewerken</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li><a href="/wiki/Programmeren_in_Java/Design_Patterns/Strategy_Pattern" title="Programmeren in Java/Design Patterns/Strategy Pattern">Strategy Pattern</a></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Design_Patterns/Factory_Pattern&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Design Patterns/Factory Pattern (de pagina bestaat niet)">Factory Pattern</a></li> <li><a href="/w/index.php?title=Programmeren_in_Java/Design_Patterns/State_Pattern&amp;action=edit&amp;redlink=1" class="new" title="Programmeren in Java/Design Patterns/State Pattern (de pagina bestaat niet)">State Pattern</a></li></ol> <div class="mw-heading mw-heading3"><h3 id="Appendices">Appendices</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Programmeren_in_Java&amp;action=edit&amp;section=6" title="Bewerk dit kopje: Appendices"><span>bewerken</span></a><span class="mw-editsection-bracket">]</span></span></div> <ol><li><a href="/wiki/Programmeren_in_Java/Appendix_B" title="Programmeren in Java/Appendix B">Appendix B: Javadoc</a> <ul><li>Javadoc</li> <li>Testcode</li></ul></li></ol> <div class="toccolours noprint" style="clear: both; box-sizing: border-box; width: 100%; margin: 1em 0 -8px 0; padding: 0 3px 1px 3px;"><div style="display: table-cell; height: 40px; width: 58px; text-align: center; vertical-align: middle;"><span typeof="mw:File"><a href="/wiki/Bestand:Heckert_GNU.png" class="mw-file-description" title="Wikipedia"><img alt="Wikipedia" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/45/Heckert_GNU.png/25px-Heckert_GNU.png" decoding="async" width="25" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/45/Heckert_GNU.png/38px-Heckert_GNU.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/45/Heckert_GNU.png/50px-Heckert_GNU.png 2x" data-file-width="700" data-file-height="684" /></a></span></div><div style="display: table-cell; vertical-align: middle;">Deze pagina is vrijgegeven onder de <a href="/wiki/Wikibooks:GNU_Vrije_Documentatie_Licentie" title="Wikibooks:GNU Vrije Documentatie Licentie">GNU Free Documentation License</a> (GFDL) en nog niet onder <a href="/wiki/Wikibooks:CC-BY-SA" title="Wikibooks:CC-BY-SA">CC-BY-SA</a>. <a href="/wiki/Wikibooks:Dubbellicentie" title="Wikibooks:Dubbellicentie">Klik hier</a> voor meer informatie.</div></div> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐5dc468848‐nggmr Cached time: 20241122180414 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] CPU time usage: 0.061 seconds Real time usage: 0.093 seconds Preprocessor visited node count: 352/1000000 Post‐expand include size: 7221/2097152 bytes Template argument size: 905/2097152 bytes Highest expansion depth: 11/100 Expensive parser function count: 2/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 0/5000000 bytes Lua time usage: 0.003/10.000 seconds Lua memory usage: 593599/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 50.484 1 -total 40.48% 20.437 1 Sjabloon:Boek 34.14% 17.234 1 Sjabloon:Find 16.43% 8.294 1 Sjabloon:Bi 13.91% 7.020 1 Sjabloon:GFDL-oud 6.21% 3.133 1 Sjabloon:Fase3 5.39% 2.720 14 Sjabloon:00% 5.16% 2.603 11 Sjabloon:75% 5.10% 2.575 2 Sjabloon:Klik 4.84% 2.444 1 Sjabloon:50% --> <!-- Saved in parser cache with key nlwikibooks:pcache:idhash:2384-0!canonical and timestamp 20241122180414 and revision id 388531. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Informatie afkomstig van <a class="external free" href="https://nl.wikibooks.org">https://nl.wikibooks.org</a> Wikibooks NL.<br /> Wikibooks NL is onderdeel van de wikimediafoundation.</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Categorie:Alles" title="Categorie:Alles">Categorieën</a>: <ul><li><a href="/wiki/Categorie:Boeken_in_Wikibooks" title="Categorie:Boeken in Wikibooks">Boeken in Wikibooks</a></li><li><a href="/wiki/Categorie:Programmeertaal" title="Categorie:Programmeertaal">Programmeertaal</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Verborgen categorieën: <ul><li><a href="/wiki/Categorie:Boeken_met_infobox" title="Categorie:Boeken met infobox">Boeken met infobox</a></li><li><a href="/wiki/Categorie:Fase3" title="Categorie:Fase3">Fase3</a></li><li><a href="/wiki/Categorie:Boeken_met_een_fasebeoordeling" title="Categorie:Boeken met een fasebeoordeling">Boeken met een fasebeoordeling</a></li><li><a href="/wiki/Categorie:Voorblad" title="Categorie:Voorblad">Voorblad</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> Deze pagina is voor het laatst bewerkt op 25 jul 2024 om 19:33.</li> <li id="footer-info-copyright">De tekst is beschikbaar onder de <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.nl">Creative Commons Naamsvermelding-GelijkDelen</a> licentie. Er kunnen aanvullende voorwaarden van toepassing zijn. Zie de <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Gebruiksvoorwaarden</a> voor meer informatie.<br /></li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacybeleid</a></li> <li id="footer-places-about"><a href="/wiki/Wikibooks:Info">Over Wikibooks</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikibooks:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Gedragscode</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Ontwikkelaars</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/nl.wikibooks.org">Statistieken</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookieverklaring</a></li> <li id="footer-places-mobileview"><a href="//nl.m.wikibooks.org/w/index.php?title=Programmeren_in_Java&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobiele weergave</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5c59558b9d-bw4cj","wgBackendResponseTime":121,"wgPageParseReport":{"limitreport":{"cputime":"0.061","walltime":"0.093","ppvisitednodes":{"value":352,"limit":1000000},"postexpandincludesize":{"value":7221,"limit":2097152},"templateargumentsize":{"value":905,"limit":2097152},"expansiondepth":{"value":11,"limit":100},"expensivefunctioncount":{"value":2,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 50.484 1 -total"," 40.48% 20.437 1 Sjabloon:Boek"," 34.14% 17.234 1 Sjabloon:Find"," 16.43% 8.294 1 Sjabloon:Bi"," 13.91% 7.020 1 Sjabloon:GFDL-oud"," 6.21% 3.133 1 Sjabloon:Fase3"," 5.39% 2.720 14 Sjabloon:00%"," 5.16% 2.603 11 Sjabloon:75%"," 5.10% 2.575 2 Sjabloon:Klik"," 4.84% 2.444 1 Sjabloon:50%"]},"scribunto":{"limitreport-timeusage":{"value":"0.003","limit":"10.000"},"limitreport-memusage":{"value":593599,"limit":52428800}},"cachereport":{"origin":"mw-web.eqiad.main-5dc468848-nggmr","timestamp":"20241122180414","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"Programmeren in Java","url":"https:\/\/nl.wikibooks.org\/wiki\/Programmeren_in_Java","sameAs":"http:\/\/www.wikidata.org\/entity\/Q251","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q251","author":{"@type":"Organization","name":"Bijdragers aan Wikimedia-projecten"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2005-08-19T18:15:33Z","dateModified":"2024-07-25T18:33:07Z","headline":"een objectgeori\u00ebnteerde programmeertaal"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10