{"id":68554,"date":"2020-10-27T09:38:03","date_gmt":"2020-10-27T09:38:03","guid":{"rendered":"https:\/\/www.fita.in\/?p=68554"},"modified":"2023-10-09T12:44:59","modified_gmt":"2023-10-09T12:44:59","slug":"primitive-and-non-primitive-data-types-in-java","status":"publish","type":"post","link":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/","title":{"rendered":"Data Types In Java: Primitive And Non Primitive Data Types In Java"},"content":{"rendered":"
\r\nIn this blog, I will drive you through the primitive and non primitive data types of java with this table of content…\r\n
\r\n
<\/i> Data types in Java<\/div>\r\n
<\/i> Types of Data Types<\/div>\r\n
<\/i> Primitive Data Types In Java<\/div>\r\n
<\/i> Non Primitive Data Types In Java<\/div>\r\n
<\/i> Differences between primitive data type and non primitive data type of Java<\/div>\r\n<\/div>\r\n

Check out this Complete Java Online Course<\/a> by FITA<\/a>. FITA provides a complete Java course including core java and advanced java J2EE, and SOA training, where you will be building real time applications using Servlets, Hibernate Framework,<\/em> and Spring <\/em>with Aspect Oriented Programming (AOP) architecture, Struts through JDBC<\/em> bundled with, placement support, and certification at an affordable price with an active placement cell,by expert software developers with 10+ years of experience in the field to make you an industry required certified java developer.<\/p>\r\nSo let us get started with by first understanding what are data types in java, and various types of data types in java.\r\n

Data Types In Java And Its Categories<\/strong><\/h3>\r\nData Types in java are used to store organized data. Your programs are almost built around data types so that you can work effectively and efficiently with the data. The data types in java are categorized into primitive data types and non primitive data types.\r\n\r\nNow that you understood data types and its categories, let us understand each of its categories in detail, starting with Primitive Data Type in Java.<\/em>\r\n

Primitive Data Types In Java<\/strong><\/h3>\r\nPrimitive data types are built in or pre-defined in java, and so you cannot modify their behavior. These are the basic data types including, integer, float, string, and boolean, which contain pure and simple forms of data.\r\n\r\nThere are 8 primitive data types as\r\n
\r\n
<\/i> boolean data type in java<\/div>\r\n
<\/i> byte data type in java<\/div>\r\n
<\/i> char data type in java<\/div>\r\n
<\/i> short data type in java<\/div>\r\n
<\/i> int data type in java<\/div>\r\n
<\/i> long data type in java<\/div>\r\n
<\/i> float data type in java<\/div>\r\n
<\/i> double data type in java<\/div>\r\n<\/div>\r\n

Byte data type in java<\/strong><\/h3>\r\nThis is an 8 bit\u00a0 or 1 byte signed data type which can store integers lying between -125 and 172. You can use this data type for memory efficiency.\r\n\r\nHere is a small program in java for demonstrating byte data type.\r\n
\r\n
\r\n\/\/ Example java program to demonstrate the byte data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\nclass Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\nbyte b1, b2;\r\n\r\nb1 = 127;\r\n\r\nSystem.out.println(b1); \/\/ prints 127\r\n\r\nb2 = 177;\r\n\r\nSystem.out.println(b2); \/\/ throws error\r\n\r\n}\r\n\r\n}\r\n\r\n \r\n\r\n\/\/ Output\r\n\r\n\/\/ error: incompatible types: possible lossy conversion from int to byte\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understand byte data type well, let\u2019s move on to the next primitive data type in Java, under integral data types we have char data type in java<\/em>.\r\n

char data type in java<\/strong><\/h3>\r\n

This data type can be used to store a single character value, for example, \u2018e\u2019, \u2018@\u2019, enclosed between single quotes. You can also store the characters with their ASCII value, or one digit numbers as characters.char data type can have a size of 2 bytes.<\/p>\r\nExample program for char data type in java<\/strong>\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the char data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\nchar b1, b2, b3, b4;\r\n\r\nb1 = '@';\r\n\r\nSystem.out.println(\"character: \"+b1);\r\n\r\nb2 = '8';\r\n\r\nSystem.out.println(\"one digit number: \"+b2);\r\n\r\nb3 = 'a';\r\n\r\nSystem.out.println(\"alphabet: \"+b2);\r\n\r\nb4 = 67;\r\n\r\nSystem.out.println(\"ascii value: \"+b4);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\ncharacter: @\r\n\r\none digit number: 8\r\n\r\nalphabet: 8\r\n\r\nascii value: C\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understood char data type well, let\u2019s move on to the next primitive data type in Java,under integral data types we have short data type<\/em>.\r\n

Short data type in java<\/strong><\/h3>\r\nThis data type can hold integral numbers from -32,768 to 32,767. The short data type can have a size of 2 bytes or 16 bits.\r\n\r\nExample program for demonstrating short data type in java\r\n
\r\n
\r\n\/\/ Example java program to demonstrate the short data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\nshort n = 3425;\r\n\r\nSystem.out.println(n); \/\/ prints 3425\r\n\r\nshort s = 327678;\u00a0 \u00a0 \u00a0 \/\/ throws an error\r\n\r\nSystem.out.println(s);\r\n\r\n}\r\n\r\n}\r\n\r\n \r\n\r\n\/\/ outputs\r\n\r\n\/\/ error: incompatible types: possible lossy conversion from int to short\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understand short data type<\/em> well, let\u2019s move on to the next primitive data type in Java, under integral data types we have int data type <\/em>In Java.\r\n

int data type in java<\/strong><\/h3>\r\n

This data type can store values up to 4 bytes or 32 bits.It can store whole numbers between -2,147,483,648 and 2,147,483,647.This data type is usually used for storing numeric values in programs.<\/p>\r\nExample program to demonstrate int data type in java\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the int data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\nint n = 334425;\r\n\r\nSystem.out.println(n); \/\/ prints 334425\r\n\r\nint s = 2147483648;\u00a0 \u00a0 \u00a0 \/\/ throws an error\r\n\r\nSystem.out.println(s);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\nerror: integer number too large\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understood, int data type<\/em> well, let\u2019s move on to the next primitive data type in Java, under integral data types we have long data type <\/em>In Java.\r\n

long data type in java<\/strong><\/h3>\r\n

This data type can have the size of 8 bytes or 64 bits, and can store values between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807, or numbers from \u00a0-263 to 263-1.<\/p>\r\nExample program to demonstrate long data type in java<\/strong>\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the long data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\n \r\n\r\nlong l = 30000000680L;\r\n\r\nSystem.out.println(l);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\n30000000680\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understand short data types<\/em> well, let\u2019s move on to the next primitive data type in Java, under integral data types we have float data type <\/em>In Java.\r\n

floating data type in java<\/strong><\/h3>\r\nTo store decimal or float numbers such as 2.544, 80.7880, you will need to use float data type.\r\n

float data type in java<\/strong><\/h3>\r\n

This can store fractional numbers with 4 bytes of memory. float data type can have numbers from 3.4e\u221203 to 3.4e+038, where 3.4e\u2212038 is the smallest positive value of float and 3.4e+038 is the largest positive value of a float. Moreover, the float numbers or the values should end with an \u2018f\u2019.Let us look at an example<\/p>\r\nExample program to demonstrate float data type in java<\/strong>\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the float data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\n \r\n\r\nfloat num1 =67;\r\n\r\nSystem.out.println(num1);\r\n\r\nfloat num2 =6.7f;\r\n\r\nSystem.out.println(num2);\r\n\r\nfloat num3 =67.0f;\r\n\r\nSystem.out.println(num3);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\n67.0\r\n\r\n6.7\r\n\r\n67.0\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understand float data types<\/em> well, let\u2019s move on to the next primitive data type in Java, under floating data types we have double data type <\/em>In Java.\r\n

double data type in java<\/strong><\/h3>\r\nThis data type can store values or numbers from 1.7e\u2212308 to 1.7e+308, ending with a \u2018d\u2019 character, Here is an example\r\n\r\nExample program to demonstrate double data type in java<\/strong>\r\n
\r\n
\r\n\/\/ Example java program to demonstrate the double data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\n \r\n\r\ndouble num = 79.678d;\r\n\r\nSystem.out.println(num);\r\n\r\ndouble num2 = 79678d;\r\n\r\nSystem.out.println(num2);\r\n\r\n\/\/ adding double numbers results in an double value\r\n\r\ndouble add = num + num2;\r\n\r\nSystem.out.println(add);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\n79.678\r\n\r\n79678.0\r\n\r\n79757.678\r\n<\/code><\/pre>\r\n<\/div>\r\n

Check out this Complete Online Java Training<\/a> by FITA<\/a>. FITA provides a complete Java course including core java and advanced java J2EE, and SOA training, where you will be building real time applications using Servlets, Hibernate Framework,<\/em> and Spring <\/em>with Aspect Oriented Programming (AOP) architecture, Struts through JDBC<\/em> bundled with, placement support, and certification at an affordable price with an active placement cell,by expert software developers with 10+ years of experience in the field to make you an industry required certified java developer.<\/p>\r\nNow that you understood various primitive data types, let us understand the next categories of data types, Non Primitive Data types In JAva <\/em>in detail.\r\n

Non primitive data types in Java<\/strong><\/h3>\r\nThe non primitive data types are also known as reference types since they refer to objects. Strings, Arrays, classes, and interfaces are the examples of non primitive data types. Let us understand each of these non primitive data types briefly.\r\n

Strings in java<\/strong><\/h3>\r\n

Although all the non primitive data types are defined by the programmer, a String is already defined by java. It is a sequence of collections of elements or characters, joined together and enclosed between double quotes.<\/p>\r\n

You can refer to string functions in java for understanding all the built in methods for java and string arrays in java for understanding how string and arrays work in java.<\/p>\r\nExample program to demonstrate String data type in java<\/strong>\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the string data type\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\n \r\n\r\nString greet = \"Hello From Atufa\";\r\n\r\nSystem.out.println(greet);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program\r\n
\r\n
\r\nHello From Atufa\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understood, String in java<\/em> well, let\u2019s move on to the next non primitive data type Arrays <\/em>in Java.\r\n

Arrays In java<\/strong><\/h3>\r\n

Arrays are like lists in java, which can hold more than one value, or as specified at the time of declaration. The elements of the array are homogenous or are of the same data type. Moreover you can traverse through elements of the array by looping, and other operations such as adding, removing, or updating elements of the array can be done on n-dimensional arrays.<\/p>\r\nExample program to demonstrate arrays in java<\/strong>\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the arrays\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\npublic class Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\nString[][] strArr = { { \"Best\", \"Java\", \"Training\" }, { \"At\", \"FITA\", \"Academy\" } };\r\n\r\nfor (int row = 0; row < strArr.length; ++row) {\r\n\r\nfor (int col = 0; col < strArr[row].length; ++col) {\r\n\r\nSystem.out.println(strArr[row][col]);\r\n\r\n}\r\n\r\n}\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\nBest\r\n\r\nJava\r\n\r\nTraining\r\n\r\nAt\r\n\r\nFITA\r\n\r\nAcademy\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understood, Arrays in Java<\/em> well, let\u2019s move on to the next non primitive data type Classes <\/em>in Java.\r\n

Classes In Java<\/strong><\/h3>\r\n

A class defines the attributes and behavior of an object. For example, if you have an Employee class, it can have attributes like name, salary, and age, whereas its behavior can include functions such as deduct or increment salary or calculate bonus, etc, whereas objects are the instances of classes or derived attributes and behaviors from class with actual data. Functions underclasses are known as methods. They define the behavior of a class.<\/p>\r\nThe class keyword is prefixed to the class name to define a class.\r\n\r\nExample program to demonstrate arrays in java\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the classes\r\n\r\nimport java.util.*;\r\n\r\npublic class Main {\r\n\r\nint val_1 = 22;\r\n\r\nint val_2 = 32;\r\n\r\n \r\n\r\npublic static void main(String[] args) {\r\n\r\n \r\n\r\n\/\/ creating multiple objects for the class main\r\n\r\nMain obj_1 = new Main();\r\n\r\nMain obj_2 = new Main();\r\n\r\nSystem.out.println(obj_1.val_1);\r\n\r\nSystem.out.println(obj_2.val_2);\r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\n22\r\n\r\n32\r\n<\/code><\/pre>\r\n<\/div>\r\nIf you understood, Classes in Java<\/em> well, let\u2019s move on to the next non primitive data type in Interfaces <\/em>in Java.\r\n

Interfaces in java<\/strong><\/h3>\r\n

Interfaces in java are pure abstract classes and also behave like an inheritance. The methods are declared in the base or super class without a definition body.<\/p>\r\n

The methods are defined in the child class or derived class of the base class with the implement keyword. Let me clear you with an example<\/p>\r\nExample program to demonstrate interfaces in java<\/strong>\r\n

\r\n
\r\n\/\/ Example java program to demonstrate the interfaces\r\n\r\nimport java.util.*;\r\n\r\n \r\n\r\n\/\/ A Java Interface\r\n\r\ninterface Shape {\r\n\r\n \r\n\r\n\/\/ Abstract methods (does not have a body)\r\n\r\npublic abstract void area();\r\n\r\n \r\n\r\npublic abstract void perimeter();\r\n\r\n \r\n\r\n}\r\n\r\n \r\n\r\n\/\/ Subclass (inherit from Shape)\r\n\r\nclass Circle implements Shape {\r\n\r\npublic void area() {\r\n\r\n \r\n\r\n\/\/ The body of area() for the circle is provided here\r\n\r\nSystem.out.println(\"Area of the circle: pi*radius*radius\");\r\n\r\n}\r\n\r\n \r\n\r\npublic void perimeter() {\r\n\r\n \r\n\r\n\/\/ The body of perimeter() for the circle is provided here\r\n\r\nSystem.out.println(\"The perimeter of the circle: 2*pi*radius\");\r\n\r\n}\r\n\r\n}\r\n\r\n \r\n\r\n\/\/ Subclass (inherit from Shape)\r\n\r\nclass Triangle implements Shape {\r\n\r\npublic void area() {\r\n\r\n \r\n\r\n\/\/ The body of area() for the triangle is provided here\r\n\r\nSystem.out.println(\"Area of the triangle: half*base*height\");\r\n\r\n}\r\n\r\n \r\n\r\npublic void perimeter() {\r\n\r\n \r\n\r\n\/\/ The body of area() for the triangle is provided here\r\n\r\nSystem.out.println(\"The perimeter of the triangle: base+height+side\");\r\n\r\n}\r\n\r\n}\r\n\r\n \r\n\r\nclass Main {\r\n\r\npublic static void main(String[] args) {\r\n\r\nCircle crc = new Circle(); \/\/ Create a Circle object\r\n\r\ncrc.perimeter();\r\n\r\ncrc.area();\r\n\r\nSystem.out.println();\r\n\r\nTriangle tri = new Triangle(); \/\/ Create a Triangle object\r\n\r\ntri.perimeter();\r\n\r\ntri.area();\r\n\r\n \r\n\r\n}\r\n\r\n}\r\n<\/code><\/pre>\r\n<\/div>\r\nOutput for the above program<\/strong>\r\n
\r\n
\r\nThe perimeter of the circle: 2*pi*radius\r\n\r\nArea of the circle: pi*radius*radius\r\n\r\nThe perimeter of the triangle: base+height+side\r\n\r\nArea of the triangle: half*base*height\r\n<\/code><\/pre>\r\n<\/div>\r\nNow that you understood the Primitive <\/em>and Non-Primitive Data Types <\/em>In Java, it is the time to compare them and see their differences.\r\n

Differences between primitive data type and non-primitive data type of Java<\/strong><\/h3>\r\n
\r\n
<\/i> Non primitive data types are defined by the programmer, whereas primitive data types are built-in in java.<\/div>\r\n
<\/i> A non primitive data type can have a null value, but a primitive data type cannot.<\/div>\r\n
<\/i> The size of primitive data types is pre-defined and cannot be changed, where as non primitive data types size depends on the type and number of objects.<\/div>\r\n<\/div>\r\n

This was all about primitive and non primitive data types in java, implementation, and their differences with example programs. To get in depth knowledge of core Java <\/em>and advanced java, J2EE,\u00a0 SOA training <\/em>along with its various applications and real-time projects using Servlets, Spring <\/em>with Aspect Oriented Programming (<\/em>AOP) <\/em>architecture,<\/em> Hibernate<\/em> Framework,and Struts <\/em>through JDBC <\/em>you can enroll in Certified Java Training in Chennai<\/a> or Certified Java Training in Bangalore<\/a> by FITA <\/a>or a virtual class for this course,at an affordable price, bundled with real time projects, certification, support, and career guidance assistance and an active placement cell, to make you an industry required certified java developer.<\/p>\r\n

FITA\u2019s courses training is delivered by professional experts who have worked in the software development and testing industry for a minimum of 10+ years, and have experience of working with different software frameworks and software testing designs.<\/p>","protected":false},"excerpt":{"rendered":"In this blog, I will drive you through the primitive and non primitive data types of java with this table of content… Data types in Java Types of Data Types Primitive Data Types In Java Non Primitive Data Types In Java Differences between primitive data type and non primitive data type of Java Check out […]","protected":false},"author":1,"featured_media":89093,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-68554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java"],"acf":[],"yoast_head":"\nData Types In Java: Primitive And Non Primitive Data Types In Java | FITA Academy<\/title>\n<meta name=\"description\" content=\"Data Types in java are used to store organized data. Your programs are almost built around data types so that you can work effectively and efficiently with the data. The data types in java are categorized into primitive data types and non primitive data types.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Types In Java: Primitive And Non Primitive Data Types In Java | FITA Academy\" \/>\n<meta property=\"og:description\" content=\"Data Types in java are used to store organized data. Your programs are almost built around data types so that you can work effectively and efficiently with the data. The data types in java are categorized into primitive data types and non primitive data types.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"FITA Academy\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/fitaAcademy\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-27T09:38:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-09T12:44:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/10\/non-primitive-data-types-in-java.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fitaacademy\" \/>\n<meta name=\"twitter:site\" content=\"@fitaacademy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Data Types In Java: Primitive And Non Primitive Data Types In Java | FITA Academy","description":"Data Types in java are used to store organized data. Your programs are almost built around data types so that you can work effectively and efficiently with the data. The data types in java are categorized into primitive data types and non primitive data types.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Data Types In Java: Primitive And Non Primitive Data Types In Java | FITA Academy","og_description":"Data Types in java are used to store organized data. Your programs are almost built around data types so that you can work effectively and efficiently with the data. The data types in java are categorized into primitive data types and non primitive data types.","og_url":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/","og_site_name":"FITA Academy","article_publisher":"https:\/\/www.facebook.com\/fitaAcademy","article_published_time":"2020-10-27T09:38:03+00:00","article_modified_time":"2023-10-09T12:44:59+00:00","og_image":[{"width":800,"height":400,"url":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/10\/non-primitive-data-types-in-java.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@fitaacademy","twitter_site":"@fitaacademy","twitter_misc":{"Written by":"admin","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#article","isPartOf":{"@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/"},"author":{"name":"admin","@id":"https:\/\/www.fita.in\/#\/schema\/person\/bb54ebe12aae8299727b8582c44347fb"},"headline":"Data Types In Java: Primitive And Non Primitive Data Types In Java","datePublished":"2020-10-27T09:38:03+00:00","dateModified":"2023-10-09T12:44:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/"},"wordCount":1678,"publisher":{"@id":"https:\/\/www.fita.in\/#organization"},"image":{"@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/10\/non-primitive-data-types-in-java.jpg","articleSection":["Java"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/","url":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/","name":"Data Types In Java: Primitive And Non Primitive Data Types In Java | FITA Academy","isPartOf":{"@id":"https:\/\/www.fita.in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#primaryimage"},"image":{"@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/10\/non-primitive-data-types-in-java.jpg","datePublished":"2020-10-27T09:38:03+00:00","dateModified":"2023-10-09T12:44:59+00:00","description":"Data Types in java are used to store organized data. Your programs are almost built around data types so that you can work effectively and efficiently with the data. The data types in java are categorized into primitive data types and non primitive data types.","breadcrumb":{"@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#primaryimage","url":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/10\/non-primitive-data-types-in-java.jpg","contentUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2020\/10\/non-primitive-data-types-in-java.jpg","width":800,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.fita.in\/primitive-and-non-primitive-data-types-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fita.in\/"},{"@type":"ListItem","position":2,"name":"Data Types In Java: Primitive And Non Primitive Data Types In Java"}]},{"@type":"WebSite","@id":"https:\/\/www.fita.in\/#website","url":"https:\/\/www.fita.in\/","name":"FITA Academy","description":"","publisher":{"@id":"https:\/\/www.fita.in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fita.in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fita.in\/#organization","name":"FITA Academy","url":"https:\/\/www.fita.in\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fita.in\/#\/schema\/logo\/image\/","url":"https:\/\/www.fita.in\/wp-content\/uploads\/2019\/07\/site-logo-2.png","contentUrl":"https:\/\/www.fita.in\/wp-content\/uploads\/2019\/07\/site-logo-2.png","width":206,"height":100,"caption":"FITA Academy"},"image":{"@id":"https:\/\/www.fita.in\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/fitaAcademy","https:\/\/x.com\/fitaacademy","https:\/\/www.instagram.com\/fita_Academy\/","https:\/\/www.linkedin.com\/company\/9223636\/admin\/","https:\/\/www.youtube.com\/channel\/UCIbVc86kI5Jnq4Ez_8_hhIg?view_as=subscriber"]},{"@type":"Person","@id":"https:\/\/www.fita.in\/#\/schema\/person\/bb54ebe12aae8299727b8582c44347fb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1eb033f2b18b94065fabbcf6c8d8766b4ce3e554fea0cd7e183a04d46a52a42c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1eb033f2b18b94065fabbcf6c8d8766b4ce3e554fea0cd7e183a04d46a52a42c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1eb033f2b18b94065fabbcf6c8d8766b4ce3e554fea0cd7e183a04d46a52a42c?s=96&d=mm&r=g","caption":"admin"}}]}},"_links":{"self":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts\/68554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/comments?post=68554"}],"version-history":[{"count":5,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts\/68554\/revisions"}],"predecessor-version":[{"id":94640,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/posts\/68554\/revisions\/94640"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/media\/89093"}],"wp:attachment":[{"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/media?parent=68554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/categories?post=68554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fita.in\/wp-json\/wp\/v2\/tags?post=68554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}