{"id":301,"date":"2021-01-03T21:20:53","date_gmt":"2021-01-03T21:20:53","guid":{"rendered":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/?page_id=301"},"modified":"2021-01-09T21:57:48","modified_gmt":"2021-01-09T21:57:48","slug":"java-datatypes","status":"publish","type":"page","link":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/","title":{"rendered":"Java Datatypes"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a06ee1bd128e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a06ee1bd128e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Primitive_Data_Types\" >Primitive Data Types<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Examples_of_the_Use_of_Primitive_Data_Types\" >Examples of the Use of Primitive Data Types<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Reference_Data_Types\" >Reference Data Types<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Major_Differences_Between_Primitive_and_Reference_Types\" >Major Differences Between Primitive and Reference Types<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Other_Points\" >Other Points<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Heres_How_References_Work\" >Here's How References Work:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/course-topics\/java-language-fundamentals\/java-datatypes\/#Summary_of_Reference_Types_from_Java_in_a_Nutshell_Flanagan\" >Summary of Reference Types (from Java in a Nutshell, Flanagan)<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Primitive_Data_Types\"><\/span>Primitive Data Types<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Java has the following&nbsp;<em>primitive data types<\/em>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Contains<\/th><th>Default<\/th><th>Size<\/th><th>Minimum <br>Value<\/th><th>Maximum <br>Value<\/th><\/tr><\/thead><tbody><tr><td>boolean<\/td><td>true or false<\/td><td>false<\/td><td>1 bit<\/td><td><em>Not applicable<\/em><\/td><td><em>Not applicable<\/em><\/td><\/tr><tr><td>char<\/td><td>Unicode&nbsp;character<\/td><td>\\u0000<\/td><td>16 bits<\/td><td>\\u0000<\/td><td>\\uFFFF<\/td><\/tr><tr><td>byte<\/td><td>signed integer<\/td><td>0<\/td><td>8 bits<\/td><td>-128<\/td><td>127<\/td><\/tr><tr><td>short<\/td><td>signed integer<\/td><td>0<\/td><td>16 bits<\/td><td>-32,768<\/td><td>32,767<\/td><\/tr><tr><td>int<\/td><td>signed integer<\/td><td>0<\/td><td>32 bits<\/td><td>-2,147,483,648<\/td><td>2,147,483,647<\/td><\/tr><tr><td>long<\/td><td>signed integer<\/td><td>0<\/td><td>64 bits<\/td><td>-9,223,372,036,854,775,808<\/td><td>9,223,372,036,854,775,807<\/td><\/tr><tr><td>float<\/td><td>IEEE 754 floating point<\/td><td>0.0<\/td><td>32 bits<\/td><td>\u00b13.40282347E+38<\/td><td>\u00b11.40239846E-45<\/td><\/tr><tr><td>double<\/td><td>IEEE 754 floating point<\/td><td>0.0<\/td><td>64 bits<\/td><td>\u00b11.79769313486231570E+308<\/td><td>\u00b14.94065645841246544E-324<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>And here are the corresponding declarations and literals:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Declaration<\/th><th>Literal<\/th><\/tr><\/thead><tbody><tr><td>boolean<\/td><td>boolean isEmpty;<\/td><td>true, false<\/td><\/tr><tr><td>char<\/td><td>char theCharacter;<\/td><td>&#8216;A&#8217;, &#8216;\\n&#8217;, &#8216;\\377&#8217;, &#8216;\\u0500&#8217;<\/td><\/tr><tr><td>byte<\/td><td>byte theByte;<\/td><td>0,&nbsp;034,&nbsp;0xFF<\/td><\/tr><tr><td>short<\/td><td>short theShort;<br><strong><em>not&nbsp;<\/em>short int s;<\/strong><\/td><td>53,&nbsp;02333,&nbsp;0xccff<\/td><\/tr><tr><td>int<\/td><td>int theInt;<\/td><td>745,&nbsp;034567,&nbsp;0xDADAFFFF<\/td><\/tr><tr><td>long<\/td><td>long theLong;<br><em><strong>not<\/strong><\/em><strong>&nbsp;long int v;<\/strong><\/td><td>1234L, 54607l,&nbsp;05674l,&nbsp;0xC080L<\/td><\/tr><tr><td>float<\/td><td>float theFloat;<\/td><td>1e1f, 2.f, .3F, 0f, 3.14f, 6.022e+23f<\/td><\/tr><tr><td>double<\/td><td>double theDouble;<\/td><td>1e1, 2. .3, 0.0, 3.14D, 1e-9d, 1e137<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"I\"><li><strong>The attributes of the primitive data types were chosen to enhance&nbsp;<em>portability<\/em>&nbsp;and&nbsp;<em>distributability<\/em>:<\/strong><ul><li>Each primitive type has&nbsp;<em>a fixed size<\/em>, regardless of platform<\/li><li>Unlike C and C++, where, depending on the platform:<ul><li>an&nbsp;<code>int<\/code>&nbsp;may be 16, 32, or 64 bits, or larger<\/li><li>a&nbsp;<code>char<\/code>&nbsp;may be&nbsp;<code>signed<\/code>&nbsp;or&nbsp;<code>unsigned<\/code><\/li><\/ul><\/li><li>Each primitive type has&nbsp;<em>fixed semantics<\/em>, regardless of platform<ul><li>Unlike C and C++, where, depending on the platform:<ul><li>integer datatypes may be 2&#8217;s-complement, 1&#8217;s-complement, or whatever<\/li><li>floating point datatypes may be IEEE, or other floating point formats.<\/li><li>platforms may use big-endian or little-endian semantics<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><li><strong>They were also chosen to enhance&nbsp;<em>safety<\/em>:<\/strong><ul><li><em>Initial\/default values<\/em>&nbsp;of primitive types are well-defined<ul><li>Unlike C and C++, where they are undefined for auto variables.<ul><li>Probably the most common cause of bugs in C and C++<\/li><\/ul><\/li><\/ul><\/li><li>Java&nbsp;<em>has no unsigned integers<\/em>&nbsp;and no&nbsp;<strong>unsigned&nbsp;<\/strong>keyword<ul><li>Unlike C and C++, where you can mix signed and unsigned arithmetic<ul><li>The source of many subtle bugs in C and C++<\/li><\/ul><\/li><\/ul><\/li><li>Java distinguishes between&nbsp;<strong>char&nbsp;<\/strong>and&nbsp;<strong>byte&nbsp;<\/strong>(and&nbsp;<strong>short<\/strong>)<ul><li>Unlike C and C++, where&nbsp;<strong>char&nbsp;<\/strong>may be:<ul><li>either a character, or a &#8216;tiny integer&#8217;<\/li><li>signed or unsigned (the source of subtle bugs, and portability problems)<\/li><\/ul><\/li><\/ul><\/li><li>Java strings (including string literals) are true objects (see later)<ul><li>Unlike C and C++, where they are simply arrays of&nbsp;<strong>char<\/strong><\/li><\/ul><\/li><li>Java has a&nbsp;<strong>boolean&nbsp;<\/strong>type which is&nbsp;<em>not<\/em>&nbsp;an integer<ul><li>Unlike C, which uses integers instead<ul><li>C programs typically intermix integers and&nbsp;<strong>boolean<\/strong>s in cavalier fashion<\/li><\/ul><\/li><li>C++ now has a&nbsp;<strong>bool&nbsp;<\/strong>data type, but it was not in the original C++ proposals.<ul><li>C++ programs typically intermix integers and&nbsp;<strong>bool<\/strong>s in the same cavalier fashion, due to the lack of a true&nbsp;<strong>boolean&nbsp;<\/strong>type in many C++ compilers (also because of programmer laziness!)<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><li><strong>They were also chosen to enhance&nbsp;<em>internationalizability<\/em>:<\/strong><ul><li>Java uses&nbsp;<strong>Unicode<\/strong><ul><li>for Java&nbsp;<em>characters<\/em><\/li><li>for Java&nbsp;<em>strings<\/em><\/li><li>for Java&nbsp;<em>identifiers<\/em><\/li><\/ul><\/li><li><strong>Unicode<\/strong>:<ul><li>is a&nbsp;<em>16-bit character encoding<\/em><\/li><li>encompasses the characters from many different languages<\/li><li>the first 128 characters are the same as the ASCII character set<\/li><li>the first 256 characters are the same as the ISO8859-1 (Latin-1) character set<\/li><li>Java uses all the standard C escapes, like&nbsp;<strong>\\n<\/strong>,&nbsp;<strong>\\t<\/strong>,&nbsp;<strong>\\r<\/strong>,&nbsp;<strong>\\xxx&nbsp;<\/strong>(where&nbsp;xxx&nbsp;is three octal digits) etc.<\/li><li>Java uses&nbsp;<strong>\\uxxxx&nbsp;<\/strong>(where&nbsp;<strong>xxxx<\/strong>&nbsp;is four hex digits)<\/li><li>Java does&nbsp;<em><strong>not<\/strong><\/em>&nbsp;support line continuation using<strong>&nbsp;\\<\/strong><\/li><\/ul><\/li><\/ul><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Examples_of_the_Use_of_Primitive_Data_Types\"><\/span>Examples of the Use of Primitive Data Types<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code><strong>boolean<\/strong><\/code><\/td><td><code><strong>boolean isOld; <\/strong><br><strong>int age = 52; <\/strong><br><strong>... <\/strong><br><strong>isOld = (age &gt; 50); <\/strong><br><strong>if (isOld) <\/strong><br>        <strong>PayPension();<\/strong><\/code><\/td><\/tr><tr><td><code><strong>char<\/strong><\/code><\/td><td><code><strong>char c = 'A'; <\/strong><br><strong>char newline = '\\n'; <\/strong><br><strong>char apostrophe = '\\''; <\/strong><br><strong>char delete = '\\377'; <\/strong><br><strong>char aleph = '\\u0500';<\/strong><\/code><\/td><\/tr><tr><td><strong><em>Integral<\/em><\/strong><\/td><td><code><strong>byte by = 45; <\/strong><br><strong>short sh = -323; <\/strong><br><strong>int i = 04567; <\/strong><br><strong>long lng = 0x08DADL;<\/strong><\/code><\/td><\/tr><tr><td><em><strong>Floating Point<\/strong><\/em><\/td><td><code><strong>float across = 45.67f; <\/strong><br><strong>double cross = -123e-23;<\/strong><\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reference_Data_Types\"><\/span>Reference Data Types<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The&nbsp;<em><strong>Primitive Data Types<\/strong><\/em>&nbsp;are:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>boolean, char, byte, short, int, long, float, double<\/strong><\/pre>\n\n\n\n<p>Everything else is a&nbsp;<em><strong>Reference Type<\/strong><\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Objects<\/strong><\/li><li><strong>Arrays<\/strong><\/li><\/ul>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Grommet g,h;\ng = new Grommet();\/\/ g refers to a Grommet object\nh = g;            \/\/ h refers to the same Grommet object<\/strong><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Major_Differences_Between_Primitive_and_Reference_Types\"><\/span>Major Differences Between Primitive and Reference Types<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Primitive Types<\/th><th>Reference Types<\/th><\/tr><\/thead><tbody><tr><td>Can be declared locally within a function.<\/td><td>References can be declared locally, but the objects themselves are always&nbsp;<strong>new<\/strong>ed from the heap.<\/td><\/tr><tr><td>Assigning one to another copies the&nbsp;<em>value<\/em>.<\/td><td>Assigning one to another&nbsp;<em>adds a new reference<\/em>&nbsp;to an object.<br>To copy one object to another, you&nbsp;<em>use the&nbsp;<strong>clone()<\/strong>&nbsp;method<\/em>.<\/td><\/tr><tr><td>Function arguments passed&nbsp;<em>by value<\/em>.<\/td><td>Function arguments passed&nbsp;<em>by reference<\/em>. (Arguments are&nbsp;<em>&#8216;references, passed by value&#8217;<\/em>.)<\/td><\/tr><tr><td><strong>==<\/strong>&nbsp;and&nbsp;<strong>!=<\/strong>&nbsp;operators compare&nbsp;<em>values<\/em>.<\/td><td><strong>==<\/strong>&nbsp;and&nbsp;<strong>!=<\/strong>&nbsp;operators&nbsp;<em>test whether references refer to the same object<\/em>.<br>To compare values, you&nbsp;<em>typically use the&nbsp;<strong>equals()<\/strong>&nbsp;method<\/em>.<\/td><\/tr><tr><td>Each type has a default&nbsp;<em>initial value.<\/em><\/td><td>Initial value of a reference is&nbsp;<strong>null<\/strong>, meaning&nbsp;<em>absence of reference<\/em>. You can explicitly set a reference to&nbsp;<strong>null&nbsp;<\/strong>by assigning it.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Other_Points\"><\/span>Other Points<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Java has no pointers!!!<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>This is goodness &#8212; believe me!<\/li><li>It isn&#8217;t as restrictive as you might first think, if you&#8217;re coming from C or C++.<\/li><\/ul>\n\n\n\n<p>You always use the&nbsp;<code><strong>new<\/strong><\/code>&nbsp;operator to create an instance of a class (object)<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>There is no&nbsp;<strong>delete&nbsp;<\/strong>operator!<\/li><li>Java takes care of cleaning up using a technique called&nbsp;<em>garbage collection<\/em>.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Here&#8217;s How References Work:<\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"450\" height=\"299\" src=\"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-content\/uploads\/2021\/01\/refdty3.gif\" alt=\"\" class=\"wp-image-309\"\/><\/figure><\/div>\n\n\n\n<div style=\"height:46px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Each assignment adds a new reference to the object.<\/li><li>Each assignment from null removes the reference to the object.<\/li><li>When the reference count goes to zero, the object is a candidate for garbage collection.<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary_of_Reference_Types_from_Java_in_a_Nutshell_Flanagan\"><\/span>Summary of Reference Types <em>(from Java in a Nutshell, Flanagan)<\/em><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>All objects and arrays are handled by reference.<\/li><li>The references themselves are passed by value to methods.<\/li><li>The&nbsp;<strong>=<\/strong>&nbsp;and&nbsp;<strong>==<\/strong>&nbsp;operators assign and test references.<\/li><li>Use&nbsp;<strong>clone()<\/strong>&nbsp;to copy an object<\/li><li>Use&nbsp;<strong>equals()<\/strong>&nbsp;to test that two different objects &#8216;are equal&#8217; (have the same value)<\/li><li>The referencing and dereferencing is handled automatically by Java.<\/li><li>A reference type can never be cast to a primitive type<\/li><li>A primitive type can never be cast to a reference type<\/li><li>There is&nbsp;<em>no pointer arithmetic<\/em>&nbsp;in Java<\/li><li>There is no&nbsp;<strong>sizeof<\/strong>&nbsp;operator in Java<\/li><li><strong>null<\/strong>&nbsp;is a special value that means &#8216;no object&#8217; or &#8216;absence of reference to object&#8217;.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Primitive Data Types Java has the following&nbsp;primitive data types: TypeContainsDefaultSizeMinimum ValueMaximum Valuebooleantrue or falsefalse1 bitNot applicableNot applicablecharUnicode&nbsp;character\\u000016 bits\\u0000\\uFFFFbytesigned integer08 bits-128127shortsigned integer016 bits-32,76832,767intsigned integer032 bits-2,147,483,6482,147,483,647longsigned integer064 bits-9,223,372,036,854,775,8089,223,372,036,854,775,807floatIEEE 754 floating point0.032 bits\u00b13.40282347E+38\u00b11.40239846E-45doubleIEEE 754 floating point0.064 bits\u00b11.79769313486231570E+308\u00b14.94065645841246544E-324 And here are the corresponding declarations and literals: TypeDeclarationLiteralbooleanboolean isEmpty;true, falsecharchar theCharacter;&#8216;A&#8217;, &#8216;\\n&#8217;, &#8216;\\377&#8217;, &#8216;\\u0500&#8217;bytebyte theByte;0,&nbsp;034,&nbsp;0xFFshortshort theShort;not&nbsp;short int s;53,&nbsp;02333,&nbsp;0xccffintint theInt;745,&nbsp;034567,&nbsp;0xDADAFFFFlonglong theLong;not&nbsp;long [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":46,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_eb_attr":"","_uag_custom_page_level_css":"","ocean_post_layout":"left-sidebar","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"ocs-course-topics-sidebar","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"class_list":["post-301","page","type-page","status-publish","hentry","entry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"ocean-thumb-m":false,"ocean-thumb-ml":false,"ocean-thumb-l":false},"uagb_author_info":{"display_name":"Bryan Higgs","author_link":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/author\/bryan\/"},"uagb_comment_info":0,"uagb_excerpt":"Primitive Data Types Java has the following&nbsp;primitive data types: Type Contains Default Size Minimum Value Maximum Value boolean true or false false 1 bit Not applicable Not applicable char Unicode&nbsp;character \\u0000 16 bits \\u0000 \\uFFFF byte signed integer 0 8 bits -128 127 short signed integer 0 16 bits -32,768 32,767 int signed integer 0&hellip;","_links":{"self":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/pages\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":5,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/pages\/301\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/pages\/301\/revisions\/607"}],"up":[{"embeddable":true,"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/pages\/46"}],"wp:attachment":[{"href":"https:\/\/bhiggs.x10hosting.com\/PracticalJavaProgramming\/wp-json\/wp\/v2\/media?parent=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}