Java Data Types

Data types in java in hindi frontDear Students, aaj ke is Lecture me hum seekhenge java data types ke bare main. Or sath hi sath ham different types of java data types ke bare me bhi padege. Or sabse important topic ki java language main kaunsa data types memory me kitna space occupies karta hai. Yah bhi ham java data types me he padege.

Lectures Covering Topics

  • What Is Java Data Types In Hindi
  • Definition Of Java Data Types
  • Introduction To Java Data Types
  • Different Types Of Java Data Types In Hindi
  • Primitive Data Types In Hindi
  • Non-Primitive Data Types In Hindi

Introduction To Java Data Types

Students hum log jab se computer ki duniya me aaye hai. Tab ek word jaroor sunte hue aa rhe honge data, Data. Aakhir kya hai ye data. To me batata hu data hamare aas pass kai tarah se available hota hai.

Jiase ki kisi studnts ka roll number, address, father name etc. Data different type ka hota hai jaise ki numbers main to kabhi words me sentences me hota hai.

Different types ke data ke liye hamare pass store karne ke liye ek alag category hoti hai. data par alag alag operation perform karne ke liye ham data ko category bise store karte hai.

JAVA Data Types In Hindi

Students jab ham koi variable create karte hai to hame apne compiler ko batana hota hai ki ham kis tarah ka variable create karege matlab ki ham compiler ko batayege ki hamara variable kis tarah ki value ko store karega.

Jis tarah ka aapne variable crate kiya hoga Compiler utni hi memory us variable ko computer system ki memory me se de deta hai. jaisa ki aap neeche likhe statement me dekh sakte hai.

Int num;

Upar likha hua statement compiler ke batata hai ki aap num variable me ek numbers (1, 2, 3, 4) hold karane wale hai. ab kisi bhi ek number ko store karne ke liye jitney bhi memory ke jaroorat hoti hai compiler utni hi memory is num variable ko allot kara deta hai. jisme char 1 byte ki memory leta hai.

Yadi kisi bhi programming language me data types na ho to hame apne computer system ki memory bahut hi waste karni padegi jis jagah hamara kaam 4 bytes ki memory me ho sakta hai hum vha 30 byte ki memory waste kar sakte hai.

Isliye student eak achha programmer bahi hota hai jo programming ke saath saath apne program ki space complexity ko bhi bachaye to aapko jis taype ka data store karna hai usi type ka variable define kare. Neeche sabhi data types ki range or maximum memory limit define ke gayi hai.

Definition Of Data Types In Hindi

Eak data type kisi variable ki value (yani char, number etc) or us variable par hone wale sabhi operation ko define karta hai. sabhi data types ka memory me memory storage representation different hota hai.

(A data types defines a domain of allowed values and the operation that can be performed on those value. Storage representation of different data types is different in memory.)

 

Different Types Of Java Data Types In Hindi

Students JAVA programming language main two types ke data types hote hai.

  • Primitive Data Types
  • Non-Primitive Data Types

JAVA DATA TYPES 2

Primitive Data Types In Hindi

Eak primitive data types standard data type hai. Java compiler me data types ke helps se hum legal operation kar sakte hai. The primitive data types main boolean, char, byte, short, int, long, float or double aadi data dypes shamil hai.

Java main 8 types ke primitive data types hote hai.

  • boolean data type
  • byte data type
  • char data type
  • short data type
  • int data type
  • long data type
  • float data type
  • double data type

JAVA DATA TYPES 1

Boolean Data Type:- Boolean data ka use ham kinhi do possible value ke liye karte hai. true or false. Is data type ka use simple flag dikhane ke liye kiya jata hai joki ture or false ko track karne ke liye kiya jata hai.

Example:- Boolean red=ture;

Byte Data Type:- Byte data type ka use bade array me memory ko bachane ke liye kiya jata hai. Jisme memory ke bachat sabse jyada hoti  hai. Byte data type memory me space ko bachata hai kyonki byte int data type se 4 guna chhota hai. byte int data types ki jagah par bhi likha ja sakta hai.

For Example: byte a = 10, byte b = -20

Short Data Type:- Short data type ka use hum memory me space ko bachane ke liye karte hai. eak short data types integer se 2 guna chhota hota hai.

Example: short s = 10000, short r = -5000

Int Data Type:- Int data type ka use generally integral values ko store karne ke liye kiya jata hai. Or int data type ka use tab tak kiya jata hai jab tak ki memory me koi problem create na kare. Int data type java me default data type bhi hota hai.

Example: int a = 100000, int b = -200000

Long Data Type:- Long data type ke default value 0 hoti hai. Jab hame int ke range se jyada range ki value ko store karana hota hai tab ham long data type ka use karte hai.

Example: long a = 100000L, long b = -200000L

Float Data Type:- Float data type eak single-precision 32-bit IEEE 754

use precise value ke liye kiya jana chahiye. Jiase default value 0.0 hai.

Example: float f1 = 234.5f

Double Data Type:- Double data type eak double-precision 64-bit IEEE 754 floating point hai. Iski value ke range unlimited hai. Is data type ka use generally decimal values ke liye kiya jata hai. Double data type ka use kabhi bhi precise value ke liye nahi kiya jana chahiye. Jaise  default value 0.0 hai.

Example: double d1 = 12.3

Char Data Type:- Char data type eak single 16-bit Unicode character hai. iski value range ‘\u0000’ (or 0) to ‘\uffff’ (or 65,535 inclusive) ke beech hai. Char data types ka use character ko store karne ke liye kiya jata hai.

Example: char letterA = ‘A

Non-Primitive Data Types In Hindi

Non-Primitive Data Types user define data types hote hai. jinhe user ke according define kiya jata hai. java me non primitive data types class, interface, array aadi shamil hai.

Related Lecture

Dear Students, main aasha karta hun ki aapko java data types Ka Lecture padh kar samjh me aa gaya hoga ki java main data types kya hote hai or java data types kitne types ke hote hai. yadi aapako (data java types) ke Lecture se related koi bhi problem hai to aap hume comment karke puch skte hai.

Share This Post On

About Author

Thakur Aman Singh

Hey, I am Aman Singh Tomar from Taj City Agra. Through This Blog I want to share my Knowledge with all of you. Read More >>

Leave a Reply

Your email address will not be published. Required fields are marked *