What is data type in java? | #6 Data Structures and Algorithms in Java
Автор: Coding School
Загружено: 2024-05-20
Просмотров: 287
Описание:
Data Structures and Algorithms in Java Full Course
What is the meaning of data type and its categories is explained in this short video.
Concept of Data Types:
A data type can be defined as set of values and set of operations which are permissible on those values.
For example, an integer data type in “C” language can have range of values [-32768 to 32767] and set of operations like +, - , *, / , % , etc.
Data types can be classified into two broad categories:
i. Primitive Data Types
ii. Abstract Data Types
1. Primitive Data Types
They are also known as Predefined or Basic Data Types.
These data types may be different for different languages.
Example, in “C” language – for storing the integer values we use int, short and for storing real values we use float, double, long.
2. Abstract Data Types
The term ‘Abstract’ stands for considering apart from the detailed specification or implementation.
Abstract refers to the act of representing the essential features without including the details.
Data Type – set of operations that are permissible on those values.
Abstract Data Types uses the following principles:
1. Encapsulation
It means providing the data and operations on the data in a single unit.
Example: Stack, Queue, Tree.
2. Abstraction
– Hiding the details of the implementation.
Example: An abstract class in java exhibits what it does through its methods but the detail (means how that method works) is hidden from the user.
If you understand the concepts, please give like to this video, subscribe to our YouTube channel, and turn on notification bell so that you never miss an update.
Thankyou...
Keep Learning Coding.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: