



{"id":1289,"date":"2017-11-16T12:01:03","date_gmt":"2017-11-16T06:31:03","guid":{"rendered":"http:\/\/computersirkiclass.com\/?p=1289"},"modified":"2026-07-27T20:43:56","modified_gmt":"2026-07-27T15:13:56","slug":"primitive-data-types-in-java","status":"publish","type":"post","link":"https:\/\/computersirkiclass.com\/cskc\/primitive-data-types-in-java\/","title":{"rendered":"Primitive Data Types in Java"},"content":{"rendered":"<div id=\"modal-ready\"><p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"111\">Data Type<\/td>\n<td width=\"113\">bits (Bytes)<\/td>\n<td width=\"123\">Default Value<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>byte<\/strong><\/td>\n<td width=\"113\">8 (1 Byte)<\/td>\n<td width=\"123\">0<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>short<\/strong><\/td>\n<td width=\"113\">16 (2 Bytes)<\/td>\n<td width=\"123\">0<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>int<\/strong><\/td>\n<td width=\"113\">32 (4 Bytes)<\/td>\n<td width=\"123\">0<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>long<\/strong><\/td>\n<td width=\"113\">64 (8 Bytes)<\/td>\n<td width=\"123\">0L<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>float<\/strong><\/td>\n<td width=\"113\">32 (4 Bytes)<\/td>\n<td width=\"123\">0.0f<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>double<\/strong><\/td>\n<td width=\"113\">64 (8 Bytes)<\/td>\n<td width=\"123\">0.0d<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>char<\/strong><\/td>\n<td width=\"113\">16 (2 bytes)<\/td>\n<td width=\"123\">Null<\/td>\n<\/tr>\n<tr>\n<td width=\"111\"><strong>boolean<\/strong><\/td>\n<td width=\"113\">8 (1 Byte)<\/td>\n<td width=\"123\">false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Know about basic data types and size they require for storage.<\/p>\n","protected":false},"author":1,"featured_media":9845,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[114,3,88],"tags":[86],"model_paper":[],"class_list":["post-1289","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cnr","category-java","category-java-all","tag-j0040-data-types-variables-and-constants","java_index-1040-data-types-variables-and-constants"],"acf":[],"_links":{"self":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/1289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/comments?post=1289"}],"version-history":[{"count":2,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/1289\/revisions"}],"predecessor-version":[{"id":1291,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/1289\/revisions\/1291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media\/9845"}],"wp:attachment":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/categories?post=1289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/tags?post=1289"},{"taxonomy":"model_paper","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/model_paper?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}