SlideShare une entreprise Scribd logo
1  sur  22
Data types and Literals




                          1
Objectives

On completion of this period, you would be able to
 know

•   Data types in Java
•   Literals in Java




                                                     2
Recap


In the previous class we have discussed
   •   White spaces, separators, literals and keywords
   •   Comments in Java




                                                         3
Data types in Java
• Data types in Java are classified into
   • Primitive types
   • Non-primitive types
• Primitive types are also known as simple data
  types
• A primitive type is predefined by the language
• Primitive types are further classified into
   • Numeric types
   • Non-numeric types



                                               4
Data types in Java
• Non-primitive types are also known as reference
  types
• Non-primitive types are
  • Classes
  • Interfaces
  • Arrays




                                                5
The classification of data types in Java
                             Data types in Java



             Primitive                         Non-primitive

 Numeric         Non-numeric
                                            classe            Arrays
                                            s
 integer
                      char                        Interface

Floating point             Boolea
                           n
                         Fig. 6.1 Data types in Java
                                                                  6
Data types

•   Primitive Java data types can be grouped into
    •   integers
    •   floating point numbers
    •   characters
    •   boolean




                                                    7
Integer types

•   Java defines four integer types: byte, short, int and
    long
•   All these are signed, positive and negative values
•   Java does not support unsigned types
•   byte is 8 bit width , short is 16 bit width int is 32
    bit width and long is 64 bit width



                                                            8
byte type

•   The smallest type is byte
•   Range from -128 to +128
•   Byte variables are declared by use of keyword
    ‘byte ‘
     eg.
         byte x, y;




                                                    9
short type

•  short is a signed 16 bit type.
• Its range is from -32,768 to +32,767

• It is probably the least used data type in Java

• Keyword used is ‘short’

eg.
  short x;




                                                    10
int type

•     The most commonly used integer data type is int
•     It has a range of -2,147,483,648 to 2,147,483,647
•     Keyword used is ‘int’
eg.
    int x;




                                                     11
long type
•   long is a signed 64 bit type
•   Useful where an int type is not large enough to hold
    the desired value
•   The range of large is quite large
•   This makes it useful when large, whole numbers are
    needed
•   Keyword used is ‘long’
eg. :
    long seconds;
                                                      12
floating point types

•   floating point numbers are also known as real
    numbers
•   Are used when fractional components are required
•   float and double are two kinds of floating point
    types
•   Keywords used are ‘float’ and ‘double’


                                                       13
Float type

•   float specify a single precision value that uses 32
    bits of storage
•   float type is useful when you require fractional
    component, but does not require a large degree of
    precision
eg.
    float area;

                                                          14
double type

•   double uses 64 bits of storage
•   When you need to maintain accuracy over many
    iterative calculations or manipulating large valued
    numbers double is the best choice
eg. :
    double area;


                                                      15
character type

•   In Java the data type used to store character is char
•   char in Java is different from char in C and C++
•   Java used Unicode to represent characters
•   Unicode was selected because it would help in
    internationalization of Java as a programming
    language
•   Java character is 16 bit type. The range of the
    characters is 0 to 65,536


                                                       16
boolean type

•   boolean data type is used to represent logical
    values that can be either true or false
•   All relational, conditional and logical operators
    return boolean values
•   It used only one bit of storage
•   Keyword used is ‘boolean’
•   eg;.
    •   boolean flag;



                                                        17
The simple data types in Java
•   In summary Java defines eight simple types of
    data. They are
    •   byte
    •   short
    •   int
    •   long
    •   char
    •   float
    •   double
    •   boolean

                                                    18
Summary
•   In this class we have discussed
    •   Data types in Java
    •   Literals in Java




                                      19
Quiz
1.Which of the following data type can store only
   two values
a)   int
b)   float
c)   boolean
d)   All of the above


                                                    20
Quiz

2.String Literal Enclosed with

a)   ‘‘
b)   ““
c)   **
d)   All the Above



                                 21
Frequently Asked Questions

1.   List the different data types available in Java

2.   Explain the various data types available in Java

3.   List the Literal in Java

4.   Explain the Literals in Java



                                                       22

Contenu connexe

Tendances

Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statementsKuppusamy P
 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statementnarmadhakin
 
Array in Java
Array in JavaArray in Java
Array in JavaAli shah
 
Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in pythoneShikshak
 
Java Data Types
Java Data TypesJava Data Types
Java Data TypesSpotle.ai
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaCPD INDIA
 
Java Data Types and Variables
Java Data Types and VariablesJava Data Types and Variables
Java Data Types and Variablessasi saseenthiran
 
Operators in java presentation
Operators in java presentationOperators in java presentation
Operators in java presentationkunal kishore
 
Primitive data types in java
Primitive data types in javaPrimitive data types in java
Primitive data types in javaUmamaheshwariv1
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Michelle Anne Meralpis
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in JavaNiloy Saha
 
ITFT-Constants, variables and data types in java
ITFT-Constants, variables and data types in javaITFT-Constants, variables and data types in java
ITFT-Constants, variables and data types in javaAtul Sehdev
 
Constants, Variables and Data Types in Java
Constants, Variables and Data Types in JavaConstants, Variables and Data Types in Java
Constants, Variables and Data Types in JavaAbhilash Nair
 
Java basics and java variables
Java basics and java variablesJava basics and java variables
Java basics and java variablesPushpendra Tyagi
 

Tendances (20)

Operators in java
Operators in javaOperators in java
Operators in java
 
Java conditional statements
Java conditional statementsJava conditional statements
Java conditional statements
 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statement
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
 
Array in Java
Array in JavaArray in Java
Array in Java
 
Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in python
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 
Java Data Types and Variables
Java Data Types and VariablesJava Data Types and Variables
Java Data Types and Variables
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Operators in java presentation
Operators in java presentationOperators in java presentation
Operators in java presentation
 
Features of java
Features of javaFeatures of java
Features of java
 
Primitive data types in java
Primitive data types in javaPrimitive data types in java
Primitive data types in java
 
Classes objects in java
Classes objects in javaClasses objects in java
Classes objects in java
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
 
ITFT-Constants, variables and data types in java
ITFT-Constants, variables and data types in javaITFT-Constants, variables and data types in java
ITFT-Constants, variables and data types in java
 
Constants, Variables and Data Types in Java
Constants, Variables and Data Types in JavaConstants, Variables and Data Types in Java
Constants, Variables and Data Types in Java
 
Java basics and java variables
Java basics and java variablesJava basics and java variables
Java basics and java variables
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
 

Similaire à Data types

Similaire à Data types (20)

Data types IN JAVA
Data types IN JAVAData types IN JAVA
Data types IN JAVA
 
01 Java Language And OOP PART I
01 Java Language And OOP PART I01 Java Language And OOP PART I
01 Java Language And OOP PART I
 
Variable
VariableVariable
Variable
 
L2 datatypes and variables
L2 datatypes and variablesL2 datatypes and variables
L2 datatypes and variables
 
332 ch07
332 ch07332 ch07
332 ch07
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
ITFT - Java
ITFT - JavaITFT - Java
ITFT - Java
 
Java basic-data-types
Java basic-data-typesJava basic-data-types
Java basic-data-types
 
Java basic data types
Java basic data typesJava basic data types
Java basic data types
 
Java basic data types
Java basic data typesJava basic data types
Java basic data types
 
demo1 java of demo 1 java with demo 1 java.ppt
demo1 java of demo 1 java with demo 1 java.pptdemo1 java of demo 1 java with demo 1 java.ppt
demo1 java of demo 1 java with demo 1 java.ppt
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Datatype
DatatypeDatatype
Datatype
 
Data types in Java
Data types in JavaData types in Java
Data types in Java
 
Java Datatypes
Java DatatypesJava Datatypes
Java Datatypes
 
Java session3
Java session3Java session3
Java session3
 
basics dart.pdf
basics dart.pdfbasics dart.pdf
basics dart.pdf
 
Mesics lecture 3 c – constants and variables
Mesics lecture 3   c – constants and variablesMesics lecture 3   c – constants and variables
Mesics lecture 3 c – constants and variables
 
Datatyps in posgresql
Datatyps in posgresqlDatatyps in posgresql
Datatyps in posgresql
 
Chapter 4.pptx
Chapter 4.pptxChapter 4.pptx
Chapter 4.pptx
 

Plus de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Dernier

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
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.pptxDr. Ravikiran H M Gowda
 

Dernier (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
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
 

Data types

  • 1. Data types and Literals 1
  • 2. Objectives On completion of this period, you would be able to know • Data types in Java • Literals in Java 2
  • 3. Recap In the previous class we have discussed • White spaces, separators, literals and keywords • Comments in Java 3
  • 4. Data types in Java • Data types in Java are classified into • Primitive types • Non-primitive types • Primitive types are also known as simple data types • A primitive type is predefined by the language • Primitive types are further classified into • Numeric types • Non-numeric types 4
  • 5. Data types in Java • Non-primitive types are also known as reference types • Non-primitive types are • Classes • Interfaces • Arrays 5
  • 6. The classification of data types in Java Data types in Java Primitive Non-primitive Numeric Non-numeric classe Arrays s integer char Interface Floating point Boolea n Fig. 6.1 Data types in Java 6
  • 7. Data types • Primitive Java data types can be grouped into • integers • floating point numbers • characters • boolean 7
  • 8. Integer types • Java defines four integer types: byte, short, int and long • All these are signed, positive and negative values • Java does not support unsigned types • byte is 8 bit width , short is 16 bit width int is 32 bit width and long is 64 bit width 8
  • 9. byte type • The smallest type is byte • Range from -128 to +128 • Byte variables are declared by use of keyword ‘byte ‘ eg. byte x, y; 9
  • 10. short type • short is a signed 16 bit type. • Its range is from -32,768 to +32,767 • It is probably the least used data type in Java • Keyword used is ‘short’ eg. short x; 10
  • 11. int type • The most commonly used integer data type is int • It has a range of -2,147,483,648 to 2,147,483,647 • Keyword used is ‘int’ eg. int x; 11
  • 12. long type • long is a signed 64 bit type • Useful where an int type is not large enough to hold the desired value • The range of large is quite large • This makes it useful when large, whole numbers are needed • Keyword used is ‘long’ eg. : long seconds; 12
  • 13. floating point types • floating point numbers are also known as real numbers • Are used when fractional components are required • float and double are two kinds of floating point types • Keywords used are ‘float’ and ‘double’ 13
  • 14. Float type • float specify a single precision value that uses 32 bits of storage • float type is useful when you require fractional component, but does not require a large degree of precision eg. float area; 14
  • 15. double type • double uses 64 bits of storage • When you need to maintain accuracy over many iterative calculations or manipulating large valued numbers double is the best choice eg. : double area; 15
  • 16. character type • In Java the data type used to store character is char • char in Java is different from char in C and C++ • Java used Unicode to represent characters • Unicode was selected because it would help in internationalization of Java as a programming language • Java character is 16 bit type. The range of the characters is 0 to 65,536 16
  • 17. boolean type • boolean data type is used to represent logical values that can be either true or false • All relational, conditional and logical operators return boolean values • It used only one bit of storage • Keyword used is ‘boolean’ • eg;. • boolean flag; 17
  • 18. The simple data types in Java • In summary Java defines eight simple types of data. They are • byte • short • int • long • char • float • double • boolean 18
  • 19. Summary • In this class we have discussed • Data types in Java • Literals in Java 19
  • 20. Quiz 1.Which of the following data type can store only two values a) int b) float c) boolean d) All of the above 20
  • 21. Quiz 2.String Literal Enclosed with a) ‘‘ b) ““ c) ** d) All the Above 21
  • 22. Frequently Asked Questions 1. List the different data types available in Java 2. Explain the various data types available in Java 3. List the Literal in Java 4. Explain the Literals in Java 22