0% found this document useful (0 votes)
3 views11 pages

JAVA

The document provides an overview of primitive data types in Java, which are predefined data types that represent single values and form the basis for all other data types. It details the sizes of various integer and floating-point data types, as well as the character data type. Additionally, it includes references for further reading on the topic.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views11 pages

JAVA

The document provides an overview of primitive data types in Java, which are predefined data types that represent single values and form the basis for all other data types. It details the sizes of various integer and floating-point data types, as well as the character data type. Additionally, it includes references for further reading on the topic.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

PRIMITIVE DATA TYPES IN

JAVA

Presentation by:
Prathiksha.D – 22CS125 Purnima.S – 22CS129
Priyanka.B – 22CS128 Ragapriya.K - 22CS130
Agenda:

▪ what is primitive datatype?

▪ Primitive Data Types

▪ References
WHAT IS PRIMITIVE
DATATYPE?
▪ The primitive data types are the predefined
data types of Java.

▪ They specify the size and type of any


standard values.

▪ Represents Single values.

▪ A set of basic data types from which all other


data types are constructed.
Topic 1:
PRIMITIVE DATA TYPES:

INTEGER
Datatypes Size
• byte 1
• short 2
• int 4
• long 8
FLOAT (contains decimal point
values)

Datatype Size

• float 4

• double 8
CHAR

▪ Represents a single character strictly enclosed within a pair of


single quotes.
(‘ ‘)

Valid: ‘A’, ’1’,’#’


Invalid: “A”, ’Apple’,5
PROGRAM
OUTPUT
REFERENCES:

▪ https://www.geeksforgeeks.org/data-types-in-j
ava/

▪ https://www.w3schools.com/java/java_data_ty
pes.asp

▪ https://www.javatpoint.com/java-data-types

You might also like