Datatypes in Java - In Hindi

codeitup
18 May 202006:41

Summary

TLDRThe video script discusses the concept of data types in Java, emphasizing their importance in building robust applications. It explains the fundamental types, including primitive types like boolean, integral, and floating-point, as well as non-primitive types. The script also touches on the significance of variables and how they store values in computer memory. It provides a basic understanding of data types, their storage, and usage, aiming to educate viewers on the foundational elements of Java programming.

Takeaways

  • 😀 The video discusses the concept of data types in Java, which is an important topic for building applications.
  • 📝 It explains the basic definition of data types as the kind of data available for storage, which depends on what a scientist will show or do with the values.
  • 🔢 The video clarifies that 'int' is used for integer values, indicating a bill of an amount, while 'float' is for fractional data, expected to store like values.
  • 🔑 It introduces the concept of variables, which are used to store values and can be changed at any point in time.
  • 🔄 The video emphasizes that variables always hold the latest value and override the old value, demonstrating the concept of 'late binding'.
  • 💾 The script mentions 'primitive data types' in Java, which are built-in and include types like boolean, byte, short, int, long, float, and double.
  • 🔍 It differentiates between 'primitive types' and 'non-primitive types', with the latter being user-defined according to specific needs.
  • 📊 The video explains that 'boolean' is a primitive data type with only two possible values, true or false, and is used for logical operations.
  • 📈 It also covers 'floating-point' types, 'float' and 'double', with 'double' providing more precision for decimal values.
  • 🔬 The script touches on the importance of understanding data types for various tasks in programming, such as storing characters, integers, and decimal values.
  • 👍 The video concludes by encouraging viewers to like, subscribe, and share if they found the content helpful.

Q & A

  • What is the main topic of the video script?

    -The main topic of the video script is discussing data types in Java, their importance, and how they are used in building concepts.

  • What are the two basic types of data types mentioned in the script?

    -The two basic types of data types mentioned in the script are primitive data types and non-primitive data types.

  • What does the term 'variable' refer to in the context of the script?

    -In the context of the script, a 'variable' refers to a storage location in a computer's memory that can hold a value.

  • What is the purpose of a 'slot' in the script's discussion?

    -A 'slot' in the script's discussion refers to a placeholder for a value, which can be used to store data and is a characteristic of a variable.

  • What is the significance of 'data types' in programming as mentioned in the script?

    -The significance of 'data types' in programming is that they define the type of data a variable can hold and how the data is stored and manipulated in memory.

  • How does the script define 'primitive data types'?

    -The script defines 'primitive data types' as built-in data types that are already defined in Java and include types such as boolean, byte, short, int, long, float, and double.

  • What is the difference between 'float' and 'double' as discussed in the script?

    -The difference between 'float' and 'double' as discussed in the script is that 'float' is a single-precision floating-point data type, while 'double' is a double-precision floating-point data type, with 'double' having more range and precision.

  • Why are 'non-primitive data types' also important in Java?

    -Non-primitive data types are important in Java because they are user-defined types that can be created by programmers according to their specific needs, offering flexibility and the ability to create complex data structures.

  • What is the role of 'identifiers' in the context of the script?

    -In the context of the script, 'identifiers' are used to name variables, classes, and other elements in Java, helping to identify and reference them in the code.

  • How does the script explain the concept of 'overriding' in variables?

    -The script explains the concept of 'overriding' in variables as the ability to change the value of a variable at any point in time, with the latest value always being kept and the older values being overridden.

  • What is the script's stance on the importance of understanding data types for programmers?

    -The script emphasizes the importance of understanding data types for programmers, stating that it is a crucial concept that helps in building and understanding various programming constructs.

Outlines

00:00

😀 Understanding Data Types in Java

The first paragraph introduces the concept of data types in Java, focusing on the importance of recognizing different types for building robust applications. It discusses the definition of 'type' in the context of data storage and how it depends on the values a scientist might use. The paragraph explains primitive data types like 'int' for integers and 'float' for decimal values, and how they are used to store values in memory. It also touches on the concept of variables, which are used to store and manipulate data, and the idea of variable assignment and value change over time.

05:01

📘 Advanced Data Types and Their Applications

The second paragraph delves into more complex data types, including character types and floating-point decimal values. It discusses the storage of characters and the increment of integral values, as well as the representation of floating-point numbers. The paragraph also covers the use of variables in storing these data types and the potential for value changes over time. It mentions the creation of classes and objects in Java, suggesting that understanding different data types is crucial for developing various digital applications. The paragraph concludes by encouraging viewers to like, subscribe, and share if they found the video helpful.

Mindmap

Keywords

💡Data Type

Data types are fundamental in programming as they define the kind of data a variable can hold and how the data is stored. In the context of the video, data types such as 'int' for integers, 'float' for decimal numbers, and 'boolean' for true or false values are mentioned. The script discusses how these types are used to define variables and their importance in programming, such as 'int' being used to define a variable holding an integer value.

💡Variable

A variable is a storage location paired with a label, which is used to store values that can change during program execution. The video script mentions variables in the context of storing data, such as 'int' for integers, and how they are used to hold values like '5' or '210'. Variables are central to the video's theme of discussing data types and their application in coding.

💡Primitive Data Types

Primitive data types are the basic data types provided by a programming language. The script refers to them as 'built-in' types, which include 'int', 'float', 'double', and 'boolean'. These types are essential for understanding the fundamental way data is categorized and manipulated in programming.

💡Non-Primitive Data Types

Non-primitive data types, as mentioned in the script, are user-defined types created according to specific needs. They are in contrast to primitive data types and are used to create more complex data structures. The script implies that these types are defined by programmers for specific use cases, differentiating them from the pre-defined primitive types.

💡Boolean

A boolean data type represents one bit of information, but its values are typically the words 'true' and 'false'. It is used in the script to illustrate a simple decision-making process in programming, where conditions are evaluated as either true or false, affecting the flow of the program.

💡Floating Point

Floating point refers to a data type in programming that represents real numbers and allows for fractional values. The script discusses 'float' and 'double' as types of floating point numbers, emphasizing their use for storing decimal values in a program.

💡Decimal Values

Decimal values are numbers that have digits to the right of the decimal point, allowing for precision beyond whole numbers. The video script mentions 'float' and 'double' as types that can store decimal values, highlighting their importance in representing real-world measurements and quantities.

💡Integral Values

Integral values, as discussed in the script, are whole numbers without any fractional part. The term is used in the context of 'int', which is a data type for storing integral values like '5' or '210', and is essential for operations that require whole numbers.

💡Data Storage

Data storage in the context of the video refers to how data is held within a program, specifically in variables. The script explains that the type of data stored depends on the data type of the variable, which determines how the data is represented in memory.

💡Memory Allocation

Memory allocation is the process of reserving a certain amount of memory for variables or data structures. The script touches on this concept when discussing how variables are created in a computer's memory to hold values, such as when an 'int' variable is declared to store an integer value.

💡Type Casting

Type casting is the process of converting a variable from one data type to another. The script implies this concept when it discusses how variables can be assigned values of different types, potentially requiring a cast to ensure compatibility, such as converting a 'float' to an 'int'.

Highlights

The video discusses the importance of data types in pattern building for developers.

It explains the concept of data types and how they are crucial in building applications.

The video mentions 'pattern' as an important topic for developers to understand.

It introduces the term 'variable' and explains its role in storing data.

The concept of 'primitive data types' is introduced, explaining their built-in nature in Java.

The difference between 'primitive' and 'non-primitive' data types is discussed.

The video explains how 'variables' are used to store values in computer memory.

It discusses the concept of 'late binding' and its role in variable assignment.

The video clarifies the meaning of 'data type' and its importance in defining the nature of data.

It explains the use of 'boolean' as a primitive data type with only two possible values.

Floating-point numbers and their use in representing decimal values are discussed.

The video differentiates between single and double precision in floating-point numbers.

It explains the concept of 'integral values' and their use in representing whole numbers.

The video discusses the storage of characters using the 'char' data type.

The concept of 'long' data type for storing larger integer values is introduced.

The video emphasizes the importance of understanding data types for effective programming.

It concludes by encouraging viewers to like, subscribe, and share the video for more content.

Transcripts

play00:00

अब आधे है

play00:10

अजय को

play00:11

कि के गांव में ज्यादा आनंद देखने को

play00:14

डिस्टर्ब आज की इस वीडियो में हम बात करने

play00:16

वाले हैं पैटर्न की डेट आपके बारे में

play00:18

बहुत इंपोर्टेंट टॉपिक है और यूज वाली यह

play00:21

कंसेप्ट बिल्डर करने में बहुत हेल्प करता

play00:23

है आपको चावल के टाइप का तो चलिए देखते

play00:25

हैं जाओगे रिटाय क्या होते हैं ठीक है

play00:34

इसके पहले वाली वीडियो में हमने जावा के

play00:36

पेड़ के बारे में पढ़ा था कि स्टूडेंट

play00:37

किसे कहते हैं और टो गर्ल्स के 25 यानि कि

play00:40

वर्ग और आईडेंटिफाई इसको भी हमने पर दिया

play00:42

था कि बोर्ड और आइडेंटिफायर्स से रिलेटेड

play00:45

ही एक्टिव निकलता है इससे रिलेटिड टाइम

play00:47

निकलता है डाटा टाइप जो बहुत इंपोर्टेंट

play00:49

टॉपिक हैं और जो हमें जानना चाहिए डेट आप

play00:52

क्या होता है बेसिकली तो चलिए देखते हैं

play00:54

डेढ-डेढ का डेफिनेशन क्या होता है

play00:57

अब तो टाइम जो है वह यह कहता है कि वो

play01:00

टाइप डिफाइंस द टाइप ऑफ डाटा अवेलेबल

play01:03

स्टोर यानि टाइट है वह डिपेंड करता है कि

play01:06

एक वैज्ञनिक इस तरह की वैल्यू क्या करेगा

play01:09

शो करेगा मतलब अगर मैं लिखता हूं इंटेरस्ट

play01:12

तो मतलब क्या हुआ कि मैं एक इनाम का बिल

play01:15

बना रहा हूं ऑफिस का टाइप क्या है

play01:17

इंटीरियर है तो यह क्या गहराय डाटा इज

play01:20

कहलाएगा ठीक है वैसे मैं लिखता हूं स्लॉट

play01:22

भी इसका मतलब क्या हुआ कि मैं भीम का

play01:24

वीडियो बल्कि बिना आईडेंटिफायर बना रहा

play01:27

हूं जो जो डाटा स्ट्रोंग करेगा वह इस

play01:29

तरीके का होगा वह लाक्षणिक डेसिमल वैल्यू

play01:31

का होगा मतलब डेसिमल वैल्यूज को एक्सेप्ट

play01:33

यानि कि स्टोर लाइक करेगा तो डेढ तो यही

play01:37

डिप्रेशन होता है कि इट आप जिस पॉइंट तक

play01:39

टाइप डाटा अवेयर प्लाट यानी कि जैसे पर

play01:43

एग्जांपल इन फ्लोट क्या है डबल लॉन्ग ऑफ

play01:45

उपयोगी बहुत सारे टास्क होते हैं तुझे कि

play01:48

बीते टाइप की बात आती है दो चीज़ें हमेशा

play01:50

ध्यान रखनी होती है पहला होता है वेजिटेबल

play01:52

और दूसरा होता है डे करता है तो वेरिएबल

play01:55

क्या होता जैसे यह देखिए मैंने पता है ना

play01:57

अपने नाम का वीडियो बनता यह जो है वह क्या

play02:00

एक वेरिएबल है जो वैल्यू को कंटेंट करेगा

play02:03

जैसे ही आप इस ट्रीटमेंट देखते हैं इंटे

play02:05

एक कंप्यूटर की मेमोरी में एक इंसान पर

play02:07

क्या होता है मेमोरियल ओरेशन बनता है जो

play02:09

अब इसमें यह आलू डालेंगे वह ट्वीट की

play02:12

वैल्यू डालेंगे वैसे ही जब लिखते हैं

play02:14

अखरोट भी तो बीन हम की हत्या का मुद्दा है

play02:16

वह बनता है और इस पर जो अप्रैल में

play02:18

डालेंगे वह किस तरह की डालेंगे प्रोटेक्ट

play02:20

की रैलियों डालेंगे तो मतलब क्या हुआ कि

play02:23

बाइबल क्या होते हैं तो वेरिएबल इस जूस टू

play02:25

स्टोर वैल्यू सैनिकों वेजिटेबल से यूज

play02:27

किया है वह जूस को स्टोर करने के लिए किया

play02:30

जाता है वैल्यूज टो डेथ इन कैन पीछे अट

play02:34

एनी प्वाइंट आफ टाइम एस एंड व्हेन

play02:36

रिक्वायर्ड और पिंपल के अंदर आप जो भी

play02:39

व्युअर्स करते हैं वह व्यक्ति जब आप चाहे

play02:42

तब चेंज कर सकते हैं जैसे कि आम तौर पर

play02:45

आपने लिखा इंटे ठीक है तो इसका मतलब क्या

play02:48

हुआ है कंप्यूटर की मेमोरी में के नाम का

play02:50

लोकेशन बनेगा और अगर आप ठीक इसकी अगली

play02:51

लाइव लिखते हैं इक्वल टू फाइव इसका मतलब

play02:54

क्या हुआ यह नहीं चला जाएगा फाई चला जाएगा

play02:56

लेकिन सपोच कि

play02:57

कि अगर आप ठीक इसके अगले में लिखते हैं

play03:00

इक्वल टू टाइम तो उसका चोली जो पुराना लिए

play03:02

पाइप को खत्म हो जाएगा और मिर्च अब जूस टो

play03:06

हो जाएगा वह क्या शुरू हो जाएगा ट्रेंस टो

play03:08

हो जाएगा फाइल खत्म हो जाएगा इसका मतलब

play03:10

क्या हुआ था कि हमेशा आप जब चाहे तब

play03:13

वेरिएबल वैल्यू को चेंज कर सकते हैं और

play03:16

हमेशा याद रखिए कंसेप्ट कि यह लेटेस्ट

play03:18

व्यक्तियों को ही हमेशा रखता है अपने पास

play03:21

पुरानी वॉल्यूम को ओवरराइड कर दिया जाता

play03:24

है मतलब जैसे ही assistant है कि पहले

play03:25

फाइव था लेकिन जैसे ही खुल 210 हुआ तो अब

play03:28

आप अगर कोई पूछे कि इस लाइन की एक ट्यूशन

play03:31

के बाद एक ही क्या रैली होगी तो इस्लाम के

play03:33

अधिवेशन के बाद जो कि की वैल्यू होगी वह

play03:35

क्या होगी टाइम होगी तो बजाय है कि जब आप

play03:38

चाहेंगे कि प्वाइंट आफ टाइम आवेली बल्कि

play03:40

भाइयों को चेंज कर सकते हैं तो यह होता है

play03:44

डाटा चाहिए अगर आप डायग्राम को समझना

play03:48

चाहते हैं कि बेसिकली टू टाइप्स आफ में

play03:50

कितने तरह के होते हैं तो यह जाएगा मुझे

play03:52

गिफ्ट गम लगा है डेढ-डेढ टाइप जो जावा में

play03:55

मौजूद होते हैं उनको हम

play03:57

लिस्ट 2 पार्ट्स में डिवाइड कर सकते हैं

play03:59

एक होता है प्रिमिटिव डार्क और दूसरा होता

play04:02

है नॉन प्रिमिटिव टाइप्स आफ प्रिमिटिव

play04:04

टाइप का मतलब क्या होता है यह बिल्ट इन

play04:07

डाटा एक्टिवेटिड है मतलब क्या हुआ इसका

play04:09

मतलब क्या होता है इसका मतलब यह है कि यह

play04:12

ऑलरेडी जावा में बने बनाए हैं और नार्मल

play04:14

मिट्टी मतलब क्या होता है यूजर डिफाइंड

play04:16

अनुसार यूज़र यानी कि हम हम अपनी मर्जी से

play04:20

अपने तरीके से जब जरूरत पड़ती है जो हम

play04:22

डाटा इज बनाते हैं वह दहन प्रिंटेड साड़ी

play04:25

मतलब राह आसान से कब्ज ए प्रिमिटिव का

play04:28

मतलब जो पहले से बने हुए डिजिटल

play04:30

टाइप्सेटिंग आरक्षण पॉजिटिव बने हुए हैं

play04:32

और नॉन प्रिमिटिव का मतलब होता है जो हमने

play04:35

की यूजर यू कह सकते हैं प्रोग्रामर जो

play04:37

अपनी यूज के एकॉर्डिंग जब हमें जरूरत

play04:40

पड़ेगी तो हमने इडली बना दिया वह कहलाता

play04:42

है क्या नॉट परमिटेड इन ठीक है टाइट

play04:44

प्रिमिटिव डाटा टाइप को बेसिकली 2 पार्ट्स

play04:47

में आगे फॉरवर्ड कर तक राज किया गया है

play04:49

पहला कहलाता है बुलियन और दूसरा जाता है

play04:52

नीम रोहित देखिए बुलियन में सिर्फ एक ही

play04:54

वेबसाइट पर और उसको मत भूलिए ही कहते हैं

play04:56

यह दुनिया

play04:57

टाइपिंग होता है न्यू मेडिकल एवं यूरिक को

play05:01

फॉर द अगर आपका डिवाइस करते हैं तो दुकान

play05:03

से निकलता है एक कैरेक्टर निकलता है और एक

play05:05

इंटीग्रल गुणों की इनक्रीज का निकलता है

play05:07

कैरेक्टर में टाइप होता है बहुत है क्या

play05:09

आप जानते हैं ट्रैक्टर को छूकर निकली के

play05:12

भृगु संहिता है और इन टीचर्स को स्टोर

play05:14

करने का जो तरीका है आप इन चीजों को इसको

play05:17

कर सकते हैं यह और दूसरा क्या होता है

play05:19

फ्लोटिंग प्वाइंट डेसिमल वैल्यूज खुसरो कर

play05:21

सकते हैं तो अगर आप इन टियर्स व वैली कुछ

play05:23

तो करना चाहते हैं तो या तो आप बाइक प्ले

play05:24

स्टोर कर सकते हैं या फिर स्टार्ट में

play05:26

शुरू कर सकते हैं या तो इंक में या तो

play05:28

लॉन्ग में यह बिल्कुल जैसे आगे बढ़ा है

play05:30

वैसे-वैसे से के पैसे की चाल चली गई है

play05:32

आगे बढ़ते चली गई है मतलब 22 से ज्यादा

play05:35

डेली पॉइंट स्टोर कर सकते हैं इससे ज्यादा

play05:37

बड़ा लिंग किसका इन लाइन से बजाओ ब्रायन

play05:39

जिसे अलार्म क्लॉक सबसे बड़ा है सबसे बड़ी

play05:42

वॉल्यूम मैक्सिमम वॉल्यूम को आप इसमें तो

play05:43

करेंगे यहां में करेंगे लेकिन बेसिकली हम

play05:47

लोगों को विटामिन जप करते हैं तो हम उसमें

play05:49

डालते हैं इंटीरियर हमेशा यूज करते हैं अब

play05:52

आईएस फ्लोटिंग प्वाइंट में जो है वह रोड

play05:54

यूज कर सकते हैं और डबल यूज कर सकते हैं

play05:55

फर्क है दोनों में बिल्कुल यही quora

play05:57

स्लॉट से ज्यादा जो है आपके पैसे यही

play06:00

प्लॉट से ज्यादा वहीं वैल्यू कुछ दूर करने

play06:02

की उसकी होती है डबल की होती है अब आते

play06:05

हैं नॉर्मली डाटा इसमें तो नॉन ट्वीट में

play06:08

आप जब ट्रैक्टर्स को बहुत हक मिला लेते

play06:10

हैं दो स्त्री बन जाता है बहुत सारे नंबर

play06:12

इसको गैरी बैलेंस को मिला लेते हो क्या

play06:14

मैं जाते अरे बन जाता है वैसे ही आगे चलकर

play06:17

आपको क्लास नहीं मिलेगा क्लास के एग्जाम

play06:18

परमिट यह जो हम जावा में बनाएंगे तो यह है

play06:23

आपके डिजिटाइम्स जो है वह डिफरेंट डिफरेंट

play06:25

रोजगार में क्या होता है मौजूद होते हैं

play06:28

तो आई हॉप आपको यह वीडियो पसंद आई होगी

play06:30

अगर आई है तो प्लीज लाइक सबस्क्राइब और

play06:32

शेयर कीजिए थैंक्स वाचिंग माय वीडियो

play06:33

थैंक्स अ

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
JavaData TypesProgrammingCoding PracticesVariablePrimitive TypesUser DefinedData StorageType DefinitionsConcept Building
Besoin d'un résumé en anglais ?