Variables and Data Types in Java in Hindi ??? ???????????? ??????????????? ???????????? ???????????????

?????????????????? ?????????????????????, ??????????????? Java Programming ??????????????? ????????? ???????????? ?????????????????? ????????? ??????????????? ??????????????? ????????? ???????????? Java ??????????????????????????? ?????? ??????????????????????????? ???????????? ?????????

?????? ?????? ?????????????????? ?????? ?????????????????? ?????? ???????????? ??????????????? ????????? ????????????????????? ??? Variables and Data Types???

??????????????????, ????????? ???????????? ???????????? ????????? ????????????, ????????? ?????? ???????????? ???????????? ?????????, ?????? ???????????? ???????????? ???????????????? ?????? ?????????, ???????????? "??????????????????" (Containers) ?????????????????? ?????????????????? ????????? ?????? ???????????? (Data) ?????? ??????????????? ???????????? ?????? ????????? ???????????? ????????????????????? ?????? ??????????????? ???????????? ??????, ????????????????????? ?????? Variables ???????????? ????????????

?????? ??????????????? ????????? ?????? ????????????????????? ?????? Java ????????? Variables ???????????? ???????????? ??????????, ?????????????????? ???????????? ??????????????? ????????? ?????? Data Types (int, float, char) ?????? ????????? ???????????????????????? ???????????? ?????????????

What is Variable in Java in Hindi? - ????????????????????? ???????????? ???????

Variable ?????? "??????????????????" (Container) ?????? "??????????????????" ?????? ??????????????? ??????????????? ???????????? ?????? ?????????????????? ?????? ??????????????? ???????????? ?????? ????????? ???????????? ???????????? ?????????

???????????? ????????? Variable ??????????????? ?????? ????????????????????? ???????????? ?????????????????? ??????????????????????????? ???????????? ????????? ????????? ???????????? ?????? (Vary ?????? ???????????? ??????)???

??????????????????:

????????? age = 20 ??????, ?????? ???????????? ???????????? ?????? ?????? ???????????? age ????????? ?????? ?????????????????? ????????? 20 ??????????????? ???????????? ????????? ?????? ????????? ????????? ????????? ??????????????? 21 ?????? ?????? ???????????? ????????????

How to Declare Variable in Java in Hindi? - ???????????? ????????? ????????????????????? ???????????? ????????????????

Java ????????? ????????????????????? ??????????????? (Declare) ?????? ?????? ??????????????? ???????????????????????? ???????????? ??????:

DataType variableName = value;

Example:

int age = 25;

String name = "Rahul";

Data Types in Java in Hindi - ???????????? ????????? ???????????? ?????????????????? ?????? ??????????????????

?????? ???????????? ????????? ?????? ?????? ?????????????????? (Variable) ????????? ????????? ?????? ????????????? ???????????? ??????????????? ???????????? ???????????? ?????? ??????????????????????

?????? ??????????????? ?????? ????????? ?????? Data Types ?????? ????????? ???????????? ???????????? Java ????????? ?????? ?????? ?????????????????? ?????? ???????????? ?????????:

  1. Primitive Data Types (?????????????????? ?????? ???????????????)
  2. Non-Primitive Data Types (??????????????????)

1. Primitive Data Types in Hindi (???????????? ???????????????)

Java ????????? 8 ????????? ?????? Primitive Data Types ???????????? ???????????? ???????????? ??????????????? 4 ?????? ??????????????? ????????? ?????? 90% ????????? ???????????? ?????????:

A. int (Integer)

???????????? ????????? ???????????? ??????????????? (Decimal) ???????????? ???????????? ??????????????? ???????????? ?????? ????????? ???????????? ?????????

Example: int marks = 95;

B. float / double

???????????? ????????? ??????????????? (Point) ???????????? ???????????? ??????????????? ???????????? ?????? ????????? ???????????? ?????????

Example: double price = 99.50;

(?????????: float ?????? ????????? ????????? f ??????????????? ???????????? ??????, ??????????????? ?????? ???????????????????????? double ????????? ???????????? ????????????)

C. char (Character)

?????? ???????????? ?????? ??????????????? (Single Character) ??????????????? ???????????? ????????? ????????? Single Quote (' ') ????????? ???????????? ???????????? ?????????

Example: char grade = 'A';

D. boolean

?????? ??????????????? ?????? ?????? ?????????????????? ??????????????? ?????? ???????????? ??????: true ?????? false??? ???????????? ????????? ?????????????????? ????????? ???????????? ????????? ???????????? ?????????

Example: boolean isPass = true;

2. Non-Primitive Data Types

?????????????????? Reference Types ?????? ???????????? ???????????? ??????????????? ???????????? ?????????????????????????????? String ?????????

String: ?????? ????????????????????? (Text) ??????????????? ???????????? ?????? ????????? ????????? ????????? ????????? Double Quotes (" ") ????????? ???????????? ???????????? ?????????

Example: String message = "Hello India";

Rules for Naming Variables in Java in Hindi - ????????? ???????????? ?????? ????????????

Java ????????? ????????????????????? ?????? ????????? ???????????? ?????? ????????? ???????????? ?????????:

  • ????????? ?????? ????????? ????????? Space ???????????? ???????????? ??????????????? (e.g., my age ????????? ??????, myAge ????????? ??????)???
  • ????????? ???????????? ???????????? ?????? ???????????? ???????????? ?????? ???????????? (e.g., 1stRank ????????? ??????)???
  • Java ?????? Reserved Words (???????????? class, int, public) ?????? ????????? ???????????? ????????? ???????????????
  • Java Case-Sensitive ??????, ???????????? age ?????? Age ?????? ?????????-????????? ??????????????????????????? ???????????? ?????????????????????

Conclusion - ????????????????????????

???????????? ?????????????????? ?????? ?????? ?????? ??????????????? ?????? ???????????? Variables and Data Types in Java in Hindi ?????? ??????????????? ?????? ????????? ???????????? ???????????????

????????? ????????????: ????????? ???????????? ???????????? ??????????????? ?????????????????? ??????????????? ?????? ????????? ???????????? ??????????????? ????????? ????????? ???????????? ???????????? ?????? ?????? int ?????????, ?????? ????????? ??????????????? ???????????? ?????? ?????? double ????????????

???????????? ??????????????? ????????? ?????? "Operators in Java" ?????? ???????????? ????????? ?????????????????? (???????????? +, -, *, /)???

FAQs

Q1. int ?????? float ????????? ???????????? ???????????? ???????

Ans: int ?????? ??????????????? ??????????????? ?????????????????? (???????????? 10, 20) ?????? ????????? ???????????? ??????, ???????????? float ?????? ??????????????? ??????????????? ?????????????????? (???????????? 10.5, 20.99) ?????? ????????? ???????????? ?????????

Q2. ???????????? ?????? ????????????????????? ?????? ????????? ??????????????? ????????? ?????? ???????????? ??????????

Ans: Java (Unicode ?????????????????? ?????? ????????????) ???????????? ?????????????????? ???????????? ??????, ??????????????? ?????? ??????????????????????????? ???????????? ???????????? ??????????????? ??????????????? ????????????????????? ????????? ?????? ???????????????

Q3. String primitive ?????? ?????? non-primitive?

Ans: String ?????? Non-Primitive (Class) ???????????? ???????????? ?????????

Latestor
Home Menu Login

Share to other apps

Report Content

Why are you reporting this content?

Your selection helps us review the content and take appropriate action.

Hate & Discrimination
Content that spreads hate or unfair treatment against a person or group because of who they are.
Abuse & Harassment
Content that insults, threatens, bullies, or makes someone uncomfortable.
Violence & Threats
Content that talks about hurting people, animals, or property, or supports violence.
Child Safety
Any content that harms, exploits, or puts children at risk.
Privacy Violation
Sharing someone’s personal information or photos without permission.
Illegal & Regulated Activities
Content that promotes or helps with illegal activities like drugs, weapons, or trafficking.
Spam & Misleading Content
Fake, misleading, or repeated content meant to trick users.
Suicide or Self-Harm
Content that encourages or explains self-harm or suicide.
Sensitive or Disturbing Content
Shocking or graphic content that may upset users.
Impersonation
Pretending to be another person or organization.
Extremism & Hate Groups
Content that supports violent groups or hateful ideas.
Civic Integrity
Content that spreads false information about elections or public processes.