SlideShare a Scribd company logo
1 of 1
Download to read offline
what are primitive data types ? give an example.
Solution
Below are the primitive data types.
1. int eg: int i=1;
2. float eg: float f=1.0f;
3. double eg: double d = 1.0;
4. char eg: char ch = 'a';
5. boolean eg boolean flag = false;
6. byte eg byte b = 1;
7. short eg short s = 2;
8.long eg long l = 100;
The corresponding Wrapper classes for each primitive types are
1. Integer
2. Float
3. Double
4. Character
5. Boolean
6. Byte
7. Short
8. Long

More Related Content

More from indiaartz

Given the global financial crisis of 2007–2009, do you anticipate an.pdf
Given the global financial crisis of 2007–2009, do you anticipate an.pdfGiven the global financial crisis of 2007–2009, do you anticipate an.pdf
Given the global financial crisis of 2007–2009, do you anticipate an.pdf
indiaartz
 
Explain to them the probability of future offspring being normal or h.pdf
Explain to them the probability of future offspring being normal or h.pdfExplain to them the probability of future offspring being normal or h.pdf
Explain to them the probability of future offspring being normal or h.pdf
indiaartz
 
Explain the difference between fermentation and respiration in biolo.pdf
Explain the difference between fermentation and respiration in biolo.pdfExplain the difference between fermentation and respiration in biolo.pdf
Explain the difference between fermentation and respiration in biolo.pdf
indiaartz
 
comparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdf
comparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdfcomparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdf
comparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdf
indiaartz
 
Add these three functions to the class binaryTreeType (provided).W.pdf
Add these three functions to the class binaryTreeType (provided).W.pdfAdd these three functions to the class binaryTreeType (provided).W.pdf
Add these three functions to the class binaryTreeType (provided).W.pdf
indiaartz
 
1. How does the ripened condition of an ovary wall allow you to dete.pdf
1. How does the ripened condition of an ovary wall allow you to dete.pdf1. How does the ripened condition of an ovary wall allow you to dete.pdf
1. How does the ripened condition of an ovary wall allow you to dete.pdf
indiaartz
 

More from indiaartz (20)

Match the graph of the sine function to the equation over [-4 Pi. 4 P.pdf
Match the graph of the sine function to the equation over [-4 Pi. 4 P.pdfMatch the graph of the sine function to the equation over [-4 Pi. 4 P.pdf
Match the graph of the sine function to the equation over [-4 Pi. 4 P.pdf
 
location in the stem, function, and Chemical Composition of their Wa.pdf
location in the stem, function, and Chemical Composition of their Wa.pdflocation in the stem, function, and Chemical Composition of their Wa.pdf
location in the stem, function, and Chemical Composition of their Wa.pdf
 
If Zn Binomial (n, ) , and n~possion(), find the distribution of Z .pdf
If Zn Binomial (n, ) , and n~possion(), find the distribution of Z .pdfIf Zn Binomial (n, ) , and n~possion(), find the distribution of Z .pdf
If Zn Binomial (n, ) , and n~possion(), find the distribution of Z .pdf
 
Given the global financial crisis of 2007–2009, do you anticipate an.pdf
Given the global financial crisis of 2007–2009, do you anticipate an.pdfGiven the global financial crisis of 2007–2009, do you anticipate an.pdf
Given the global financial crisis of 2007–2009, do you anticipate an.pdf
 
Generativity versus stagnation        Early adult transitio.pdf
Generativity versus stagnation        Early adult transitio.pdfGenerativity versus stagnation        Early adult transitio.pdf
Generativity versus stagnation        Early adult transitio.pdf
 
Genetics Question 2 In the insect sex determination system, th.pdf
Genetics Question 2 In the insect sex determination system, th.pdfGenetics Question 2 In the insect sex determination system, th.pdf
Genetics Question 2 In the insect sex determination system, th.pdf
 
Explain why malaria infection may lead to anemia. How would you clas.pdf
Explain why malaria infection may lead to anemia. How would you clas.pdfExplain why malaria infection may lead to anemia. How would you clas.pdf
Explain why malaria infection may lead to anemia. How would you clas.pdf
 
Figure 13.2 of a single pair of homologous chromosomes as they might.pdf
Figure 13.2 of a single pair of homologous chromosomes as they might.pdfFigure 13.2 of a single pair of homologous chromosomes as they might.pdf
Figure 13.2 of a single pair of homologous chromosomes as they might.pdf
 
Every individual produced by sexual reproduction is unique. This is .pdf
Every individual produced by sexual reproduction is unique. This is .pdfEvery individual produced by sexual reproduction is unique. This is .pdf
Every individual produced by sexual reproduction is unique. This is .pdf
 
Explain to them the probability of future offspring being normal or h.pdf
Explain to them the probability of future offspring being normal or h.pdfExplain to them the probability of future offspring being normal or h.pdf
Explain to them the probability of future offspring being normal or h.pdf
 
explain conceptual questionsvariabilitystandard devationz-sc.pdf
explain conceptual questionsvariabilitystandard devationz-sc.pdfexplain conceptual questionsvariabilitystandard devationz-sc.pdf
explain conceptual questionsvariabilitystandard devationz-sc.pdf
 
Explain the difference between fermentation and respiration in biolo.pdf
Explain the difference between fermentation and respiration in biolo.pdfExplain the difference between fermentation and respiration in biolo.pdf
Explain the difference between fermentation and respiration in biolo.pdf
 
Drag each cell structure to the appropriate bin. If a structure is fo.pdf
Drag each cell structure to the appropriate bin. If a structure is fo.pdfDrag each cell structure to the appropriate bin. If a structure is fo.pdf
Drag each cell structure to the appropriate bin. If a structure is fo.pdf
 
Determine the intervals of the domain over which the function is cont.pdf
Determine the intervals of the domain over which the function is cont.pdfDetermine the intervals of the domain over which the function is cont.pdf
Determine the intervals of the domain over which the function is cont.pdf
 
comparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdf
comparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdfcomparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdf
comparison or words in group.F. Nucleotide, NucleusG. Mitosis, C.pdf
 
Before studying the skin model use your textbook and lab manual to co.pdf
Before studying the skin model use your textbook and lab manual to co.pdfBefore studying the skin model use your textbook and lab manual to co.pdf
Before studying the skin model use your textbook and lab manual to co.pdf
 
Answer the following questions pleaseSolution 5.OPTION A).pdf
Answer the following questions pleaseSolution 5.OPTION A).pdfAnswer the following questions pleaseSolution 5.OPTION A).pdf
Answer the following questions pleaseSolution 5.OPTION A).pdf
 
Add these three functions to the class binaryTreeType (provided).W.pdf
Add these three functions to the class binaryTreeType (provided).W.pdfAdd these three functions to the class binaryTreeType (provided).W.pdf
Add these three functions to the class binaryTreeType (provided).W.pdf
 
4. Describe using examples the main characteristics of infrastructure.pdf
4. Describe using examples the main characteristics of infrastructure.pdf4. Describe using examples the main characteristics of infrastructure.pdf
4. Describe using examples the main characteristics of infrastructure.pdf
 
1. How does the ripened condition of an ovary wall allow you to dete.pdf
1. How does the ripened condition of an ovary wall allow you to dete.pdf1. How does the ripened condition of an ovary wall allow you to dete.pdf
1. How does the ripened condition of an ovary wall allow you to dete.pdf
 

Recently uploaded

MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 

Recently uploaded (20)

UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 

what are primitive data types give an example.SolutionBelow .pdf

  • 1. what are primitive data types ? give an example. Solution Below are the primitive data types. 1. int eg: int i=1; 2. float eg: float f=1.0f; 3. double eg: double d = 1.0; 4. char eg: char ch = 'a'; 5. boolean eg boolean flag = false; 6. byte eg byte b = 1; 7. short eg short s = 2; 8.long eg long l = 100; The corresponding Wrapper classes for each primitive types are 1. Integer 2. Float 3. Double 4. Character 5. Boolean 6. Byte 7. Short 8. Long