Data Types in Java | Java - Basic Data Types | Java Tutorial for Beginners 2023 | Parnika Tutorials
Автор: Parnika Tutorials
Загружено: 2022-01-19
Просмотров: 558
"Data Types in Java | What is DataType? | Java - Basic Data Types | Java Tutorial for Beginners | Parnika Tutorials
#javadatatypes #tjavadata #javatypes #basicdatattypes
#javafeatures #featuresjava #java #javafullcourse #javatutorials #javaforbeginners #javalanguage #learnjava #javacompletecourse #javaprogramming #javatutorialforbeginners #parnikatutorials #javacourse
00:00 - Introduction
00:40 - Purpose of a data type
03:48 - Primitive data types
10:59 - Interesting question on data type
previous video = #7 COMMENTS IN JAVA | DOCUMENTATION IN JAVA
• Documentation Comments In Java | Java Tuto... "
Social media Links:
Instagram: / parnikatutorials
Website:
Email id: [email protected]
To get the regular updates:
Telegram link: https://t.me/Parnikatutorials
Facebook: https://m.facebook.com/profile.php?id...
Linkedin: / parnika-tutorials-a8a9831b2
Pinterest: / parnikatutorials0892
Playlists:
Virtual Coffee with Jagadeesh: • VIRTUAL COFFEE WITH JAGADEESH
Digital Logic: • ABOUT PARNIKA TUTORIALS
Computer Organization and Architecture: • ABOUT PARNIKA TUTORIALS
C Programming: • L 1: WHAT IS AN ALGORITHM AND CHARACTERIST...
Data Structures: • L 1: Uncover the Benefits of Linked List: ...
Theory of Computation: • ABOUT PARNIKA TUTORIALS
Compiler Design: • ABOUT PARNIKA TUTORIALS
Operating Systems: • PROCESS STATE DIAGRAM | LONG TERM, SHORT T...
Databases: • ABOUT PARNIKA TUTORIALS
Computer Networks: • ABOUT PARNIKA TUTORIALS
For GATE PYQs and much more explore: / parnikatutorials
There are majorly two types of languages.
First, one is Statically typed language where each variable and expression type is already known at compile time. Once a variable is declared to be of a certain data type, it cannot hold values of other data types.
Example: C, C++, Java.
The other is Dynamically typed languages. These languages can receive different data types over time.
Example: Ruby, Python
Java is statically typed and also a strongly typed language because, in Java, each type of data (such as integer, character, hexadecimal, packed decimal, and so forth) is predefined as part of the programming language and all constants or variables defined for a given program must be described with one of the data types.
ava has two categories of data:
Primitive Data Type: such as boolean, char, int, short, byte, long, float, and double
Non-Primitive Data Type or Object Data type: such as String, Array, etc.
There are 8 primitive data types:
1. boolean: boolean data type represents only one bit of information either true or false, but the size of the boolean data type is virtual machine-dependent. Values of type boolean are not converted implicitly or explicitly (with casts) to any other type.
2. byte: The byte data type is an 8-bit signed two’s complement integer. The byte data type is useful for saving memory in large arrays.
3. short: The short data type is a 16-bit signed two’s complement integer. Similar to byte, use a short to save memory in large arrays, in situations where the memory savings actually matters.
4. int: It is a 32-bit signed two’s complement integer.
5. long: The long data type is a 64-bit two’s complement integer.
6. float: The float data type is a single-precision 32-bit IEEE 754 floating-point. Use a float (instead of double) if you need to save memory in large arrays of floating-point numbers.
7. double: The double data type is a double-precision 64-bit IEEE 754 floating-point. For decimal values, this data type is generally the default choice.
8. char: The char data type is a single 16-bit Unicode character.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: