Forwarded from
๐๐ง๐ง๐ฆ โ ๐ข๐ณ๐ณ ๐๐ฎ๐บ๐ฝ๐๐ ๐๐ฟ๐ถ๐๐ฒ ๐ฎ๐ฌ๐ฎ๐ณ! ๐ฏ
๐ข Company: L&T Technology Services (LTTS)
๐ผ Role: Associate Engineer Trainee (GET) | 2985fcdf
๐ Location: Bangalore, Chennai, Mysore, Hyderabad, Pune, Mumbai, Vadodara, Delhi
๐ฐ Salary: โน4,00,100 CTC (reported โน3โ5 LPA)
๐ Eligibility: 2026 batch
๐ผ Experience: Freshers
โ ๏ธ Note: โน2 lakh bond, 60% throughout, no backlogs, apply by 29 Nov
๐https://app.joinsuperset.com/join/#/signup/student/jobprofiles/2985fcdf-6c0a-4802-8e0b-cf3c2ff49b0e
๐ข Company: L&T Technology Services (LTTS)
๐ผ Role: Associate Engineer Trainee (GET) | 2985fcdf
๐ Location: Bangalore, Chennai, Mysore, Hyderabad, Pune, Mumbai, Vadodara, Delhi
๐ฐ Salary: โน4,00,100 CTC (reported โน3โ5 LPA)
๐ Eligibility: 2026 batch
๐ผ Experience: Freshers
โ ๏ธ Note: โน2 lakh bond, 60% throughout, no backlogs, apply by 29 Nov
๐https://app.joinsuperset.com/join/#/signup/student/jobprofiles/2985fcdf-6c0a-4802-8e0b-cf3c2ff49b0e
Hi Champ,
Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ
๐ฉโ๐ซ Faculty: Rachit sir
๐ฃTime : 8:00 P.M
๐Topic: Time and Work - From basic to Advance - 01 ( with complete PYQ series )
๐ Date: 17/ 11/2026
๐จ Dusron ko placement lagte dekhna hai ya apni placement karwani hai?
This Children's Day, CampusMonk is giving you a special gift! ๐
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
Team campsumonk๐ฅ
Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ
๐ฉโ๐ซ Faculty: Rachit sir
๐ฃTime : 8:00 P.M
๐Topic: Time and Work - From basic to Advance - 01 ( with complete PYQ series )
๐ Date: 17/ 11/2026
๐จ Dusron ko placement lagte dekhna hai ya apni placement karwani hai?
This Children's Day, CampusMonk is giving you a special gift! ๐
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
Team campsumonk๐ฅ
Forwarded from
๐โจ Word of the Day โจ๐
๐ Adept /ษหdept/ (Adjective โ C1)
๐ก Meaning: Very skilled or good at something.
๐ Example: She is adept at solving complex problems.
๐ง Mini-Story Trick:
Rohan could fix any computer problem in minutes. Everyone knew he was adept at technology! ๐ป
๐ Synonyms: Skilled, proficient | Antonyms: Incompetent, unskilled
โธป
โค๏ธ Double Tap & Share!
๐ Adept /ษหdept/ (Adjective โ C1)
๐ก Meaning: Very skilled or good at something.
๐ Example: She is adept at solving complex problems.
๐ง Mini-Story Trick:
Rohan could fix any computer problem in minutes. Everyone knew he was adept at technology! ๐ป
๐ Synonyms: Skilled, proficient | Antonyms: Incompetent, unskilled
โธป
โค๏ธ Double Tap & Share!
Forwarded from
*CODING INTERVIEW SERIES- PART 4*
*Topic: Loops in Programming*
Let's continue our Coding Interview Series!
In this part, we'll cover loops, their types, and important coding concepts frequently asked in beginner-level interviews.
*1. What is a loop in programming?*
A loop is a programming structure used to execute a block of code repeatedly until a specified condition is met.
Common types of loops:
- For loop
- While loop
- Do-while loop
*2. What is a for loop?*
A for loop is used to iterate over a sequence or execute a block of code a specific number of times.
Example (Python):
Output:
*3. What is a while loop?*
A while loop repeatedly executes a block of code as long as the given condition remains true.
Example:
*4. What is the difference between for loop and while loop?*
*For Loop:*
- Commonly used when iterating over a sequence.
- Useful when the number of iterations is known.
- Iteration is generally managed by the loop structure.
*While Loop:*
- Executes as long as a condition is true.
- Useful when the number of iterations is unknown.
- Requires careful condition updates to avoid infinite loops.
*5. What is a nested loop?*
A nested loop is a loop inside another loop.
*6. What is the break statement?*
The
*7. What is the continue statement?*
The
*8. What is the pass statement?*
The
It is useful when you want to create an empty block of code without getting a syntax error.
*9. What is an infinite loop?*
An infinite loop is a loop that continues executing because its termination condition is never reached.
This loop continues until it is interrupted or terminated externally.
*10. How do you find the sum of the first N natural numbers using a loop?*
Example: Find the sum of numbers from 1 to 5.
Explanation:
1 + 2 + 3 + 4 + 5 = 15
*Double Tap โค๏ธ For Part-5*
*Topic: Loops in Programming*
Let's continue our Coding Interview Series!
In this part, we'll cover loops, their types, and important coding concepts frequently asked in beginner-level interviews.
*1. What is a loop in programming?*
A loop is a programming structure used to execute a block of code repeatedly until a specified condition is met.
Common types of loops:
- For loop
- While loop
- Do-while loop
*2. What is a for loop?*
A for loop is used to iterate over a sequence or execute a block of code a specific number of times.
Example (Python):
for i in range(1, 6):
print(i)
Output:
1
2
3
4
5
*3. What is a while loop?*
A while loop repeatedly executes a block of code as long as the given condition remains true.
Example:
i = 1
while i <= 5:
print(i)
i += 1
*4. What is the difference between for loop and while loop?*
*For Loop:*
- Commonly used when iterating over a sequence.
- Useful when the number of iterations is known.
- Iteration is generally managed by the loop structure.
*While Loop:*
- Executes as long as a condition is true.
- Useful when the number of iterations is unknown.
- Requires careful condition updates to avoid infinite loops.
*5. What is a nested loop?*
A nested loop is a loop inside another loop.
for i in range(1, 4):
for j in range(1, 3):
print(i, j)
1 1
1 2
2 1
2 2
3 1
3 2
*6. What is the break statement?*
The
break statement is used to immediately terminate a loop when a particular condition is satisfied.for i in range(1, 6):
if i == 3:
break
print(i)
1
2
*7. What is the continue statement?*
The
continue statement skips the current iteration and moves to the next iteration of the loop.for i in range(1, 6):
if i == 3:
continue
print(i)
1
2
4
5
*8. What is the pass statement?*
The
pass statement is a placeholder that performs no operation.It is useful when you want to create an empty block of code without getting a syntax error.
for i in range(1, 4):
if i == 2:
pass
print(i)
1
2
3
*9. What is an infinite loop?*
An infinite loop is a loop that continues executing because its termination condition is never reached.
while True:
print("Hello")
This loop continues until it is interrupted or terminated externally.
*10. How do you find the sum of the first N natural numbers using a loop?*
Example: Find the sum of numbers from 1 to 5.
n = 5
total = 0
for i in range(1, n + 1):
total += i
print(total)
15
Explanation:
1 + 2 + 3 + 4 + 5 = 15
*Double Tap โค๏ธ For Part-5*
Forwarded from
๐จ Dusron ko placement lagte dekhna hai ya apni placement karwani hai?
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
โค๏ธ Team CampusMonk
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
โค๏ธ Team CampusMonk
Forwarded from
๐โจ Word of the Day โจ๐
๐ Cumbersome /หkสm.bษ.sษm/ (Adjective โ C1)
๐ก Meaning: Difficult to handle, use, or manage because of its size or complexity.
๐ Example: The old software has a cumbersome interface.
๐ง Mini-Story Trick:
Ravi carried a huge suitcase up three flights of stairs. It was so cumbersome! ๐งณ
๐ Synonyms: Awkward, bulky | Antonyms: Manageable, convenient
โธป
โค๏ธ Double Tap & Share!
๐ Cumbersome /หkสm.bษ.sษm/ (Adjective โ C1)
๐ก Meaning: Difficult to handle, use, or manage because of its size or complexity.
๐ Example: The old software has a cumbersome interface.
๐ง Mini-Story Trick:
Ravi carried a huge suitcase up three flights of stairs. It was so cumbersome! ๐งณ
๐ Synonyms: Awkward, bulky | Antonyms: Manageable, convenient
โธป
โค๏ธ Double Tap & Share!
Forwarded from
๐ฑ ๐๐๐ป๐ถ๐ผ๐ฟ ๐๐๐น๐น๐๐๐ฎ๐ฐ๐ธ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ โ ๐๐ฝ๐ฝ๐น๐ฒ
๐ ๐๐ผ๐ฐ๐ฎ๐๐ถ๐ผ๐ป: Hyderabad, Telangana
๐ผ ๐๐ ๐ฝ๐ฒ๐ฟ๐ถ๐ฒ๐ป๐ฐ๐ฒ: 0โ2 Years
๐ง ๐๐ฒ๐ ๐ฆ๐ธ๐ถ๐น๐น๐:
* Java or Python
* React or Angular
* REST APIs & SQL
* Data Structures & Algorithms
* AI/LLM Concepts & Agentic Workflows
* Docker, CI/CD & Cloud Platforms
* Logging, Metrics & Observability
๐ ๐๐น๐ถ๐ด๐ถ๐ฏ๐ถ๐น๐ถ๐๐:
* Bachelor's degree in Computer Science, Computer Engineering, or related technical field, or equivalent practical experience
* Internships, co-ops, and substantial projects count
* Open to early-career engineers
โก๏ธ ๐๐ฃ๐ฃ๐๐ฌ: https://jobs.apple.com/en-us/details/200694892-1052?board=17682
๐ ๐๐ผ๐ฐ๐ฎ๐๐ถ๐ผ๐ป: Hyderabad, Telangana
๐ผ ๐๐ ๐ฝ๐ฒ๐ฟ๐ถ๐ฒ๐ป๐ฐ๐ฒ: 0โ2 Years
๐ง ๐๐ฒ๐ ๐ฆ๐ธ๐ถ๐น๐น๐:
* Java or Python
* React or Angular
* REST APIs & SQL
* Data Structures & Algorithms
* AI/LLM Concepts & Agentic Workflows
* Docker, CI/CD & Cloud Platforms
* Logging, Metrics & Observability
๐ ๐๐น๐ถ๐ด๐ถ๐ฏ๐ถ๐น๐ถ๐๐:
* Bachelor's degree in Computer Science, Computer Engineering, or related technical field, or equivalent practical experience
* Internships, co-ops, and substantial projects count
* Open to early-career engineers
โก๏ธ ๐๐ฃ๐ฃ๐๐ฌ: https://jobs.apple.com/en-us/details/200694892-1052?board=17682
Forwarded from
โข Print your name, city and profession on separate lines.
โข Print the sum of two numbers.
```java
public class Practice {
System.out.println("My name is Rahul");
System.out.println("I am learning Java");
System.out.println("Java is interesting!");
*Important Takeaways*
โข Java is a high-level, object-oriented programming language.
โข Java was officially released in 1995.
โข JDK is used to develop Java applications.
โข JRE provides the runtime environment.
โข JVM executes Java bytecode.
โข `
โข `
โข `
*Double Tap โค๏ธ For Part-2*
โข Print the sum of two numbers.
```java
public class Practice {
System.out.println("My name is Rahul");
System.out.println("I am learning Java");
System.out.println("Java is interesting!");
*Important Takeaways*
โข Java is a high-level, object-oriented programming language.
โข Java was officially released in 1995.
โข JDK is used to develop Java applications.
โข JRE provides the runtime environment.
โข JVM executes Java bytecode.
โข `
.java` files contain source code.โข `
.class` files contain bytecode.โข `
main()` is the traditional entry point of a Java application.*Double Tap โค๏ธ For Part-2*
Hi Champ,
Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ
๐ฉโ๐ซ Faculty: Rachit sir
๐ฃTime : 7:30 P.M
๐Topic: Time ans Work - PYQ Series
๐ Date: 18/ 11/2026
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
Team campsumonk๐ฅ
Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ
๐ฉโ๐ซ Faculty: Rachit sir
๐ฃTime : 7:30 P.M
๐Topic: Time ans Work - PYQ Series
๐ Date: 18/ 11/2026
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
Team campsumonk๐ฅ
Forwarded from
Citi
Position: Junior Full Stack Engineer with AI
Qualification: Bachelorโs Degree
Experienc๏ปฟe: Freshers/ Experienced
Location: Chennai, India
๐Apply Now: https://jobs.citi.com/job/chennai/junior-full-stack-engineer-with-ai/287/103374648624
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
Position: Junior Full Stack Engineer with AI
Qualification: Bachelorโs Degree
Experienc๏ปฟe: Freshers/ Experienced
Location: Chennai, India
๐Apply Now: https://jobs.citi.com/job/chennai/junior-full-stack-engineer-with-ai/287/103374648624
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
Citi
Junior Full Stack Engineer with AI | Citi Careers
Learn more about applying for Junior Full Stack Engineer with AI at Citi. Learn more about potential responsibilities, qualifications and career paths.
Forwarded from
๐๐๐ ๐๐ง๐ญ๐๐ซ๐ง๐ฌ๐ก๐ข๐ฉ
Position: College Intern
Qualification: Bachelorโs Degree
Experienc๏ปฟe: Freshers
Location: Remote
๐Apply Link: https://careers.hpe.com/us/en/job/1211843/College-Intern
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
Position: College Intern
Qualification: Bachelorโs Degree
Experienc๏ปฟe: Freshers
Location: Remote
๐Apply Link: https://careers.hpe.com/us/en/job/1211843/College-Intern
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
HPE
College Intern in Bengaluru, Karnฤtaka, 560048 | Administration & Workplace at HPE
Apply for College Intern job with HPE in Bengaluru, Karnฤtaka, 560048. Administration & Workplace at HPE
Forwarded from
Cisco
Position: Software Engineer
Qualification: Bachelor's Degree
Experience: Freshers
Location: Bangalore, India
๏ปฟ
๐Apply Now: https://careers.cisco.com/global/en/job/2025113/Software-Engineer
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
Position: Software Engineer
Qualification: Bachelor's Degree
Experience: Freshers
Location: Bangalore, India
๏ปฟ
๐Apply Now: https://careers.cisco.com/global/en/job/2025113/Software-Engineer
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
Cisco
Software Engineer in Hyderabad, Telangฤna, India | Product and Engineering at Cisco
Apply for Software Engineer job with Cisco in Hyderabad, Telangฤna, India. Product and Engineering at Cisco
Forwarded from
๐โจ Word of the Day โจ๐
๐ Impartial /ษชmหpษหr.สษl/ (Adjective โ C1)
๐ก Meaning: Fair and not favouring one person or side over another.
๐ Example: A good judge must remain impartial.
๐ง Mini-Story Trick:
During a cricket match, Rahul made fair decisions for both teams. Everyone appreciated his impartial attitude! ๐
๐ Synonyms: Fair, unbiased | Antonyms: Biased, prejudiced
โธป
โค๏ธ Double Tap & Share!
๐ Impartial /ษชmหpษหr.สษl/ (Adjective โ C1)
๐ก Meaning: Fair and not favouring one person or side over another.
๐ Example: A good judge must remain impartial.
๐ง Mini-Story Trick:
During a cricket match, Rahul made fair decisions for both teams. Everyone appreciated his impartial attitude! ๐
๐ Synonyms: Fair, unbiased | Antonyms: Biased, prejudiced
โธป
โค๏ธ Double Tap & Share!
*Day 2: Variables & Data Types in Java*
In Java, variables and data types are fundamental concepts. Before writing complex programs, you need to understand how Java stores and manages data.
Let's learn everything step by step with simple examples.
*1. What Is a Variable?*
A variable is a named memory location used to store data in a program.
Think of a variable as a container that holds information.
Example:
Output:
Here:
*
*
*
*
*
*
2. How to Declare a Variable
Syntax:
Examples:
You can also declare a variable first and assign a value later.
*3. Types of Variables in Java*
Java variables are mainly classified into three types.
*1. Local Variables*
* Declared inside a method, constructor or block.
* Accessible only within that scope.
* Must be initialized before use.
*2. Instance Variables*
* Declared inside a class but outside methods and constructors.
* Belong to an object.
* Each object has its own copy.
*3. Static Variables*
* Declared using the
* Belong to the class rather than individual objects.
* Shared among all instances of that class.
*4. What Are Data Types in Java?*
A data type specifies what kind of value a variable can store.
Java has two major categories of data types:
* Primitive Data Types
* Non-Primitive (Reference) Data Types
5. Primitive Data Types
Java has 8 primitive data types.
| Data Type | Size | Example |
|
|
|
|
| byte | 1 byte | byte a = 10; |
| short | 2 bytes | short b = 1000; |
| int | 4 bytes | int age = 25; |
| long | 8 bytes | long n = 100000L; |
| float | 4 bytes | float x = 10.5f; |
| double | 8 bytes | double y = 25.75; |
| char | 2 bytes | char c = 'A'; |
| boolean | JVM-dependent | boolean b = true; |
Let's understand them.
*Integer Types*
Used to store whole numbers.
*Floating-Point Types*
Used to store decimal numbers.
Remember:
* Float values generally require the
* Double is the default type for decimal literals.
*Character Type*
Used to store a single character.
Remember: Java uses single quotes for
*Boolean Type*
Used to store either
*6. Reference Data Types*
Reference data types store references to objects rather than primitive values.
Common examples include:
* String
* Arrays
* Classes
* Interfaces
* Objects
* Enums
*7. Type Casting in Java*
Type casting means converting one data type into another.
There are two main types.
*1. Widening Casting (Automatic)*
Converting a smaller compatible numeric type into a larger type.
Conversion:
*2. Narrowing Casting (Manual)*
Converting a larger numeric type into a smaller type.
In Java, variables and data types are fundamental concepts. Before writing complex programs, you need to understand how Java stores and manages data.
Let's learn everything step by step with simple examples.
*1. What Is a Variable?*
A variable is a named memory location used to store data in a program.
Think of a variable as a container that holds information.
Example:
public class Main {
public static void main(String[] args) {
int age = 25;
String name = "Rahul";
System.out.println(name);
System.out.println(age);
}
}Output:
Rahul
25
Here:
*
int โ Data type*
age โ Variable name*
25 โ Value*
String โ Data type*
name โ Variable name*
"Rahul" โ Value2. How to Declare a Variable
Syntax:
dataType variableName = value;
Examples:
int age = 25;
double salary = 45000.50;
char grade = 'A';
boolean isActive = true;
String city = "Jaipur";
You can also declare a variable first and assign a value later.
int marks;
marks = 90;
System.out.println(marks);
90
*3. Types of Variables in Java*
Java variables are mainly classified into three types.
*1. Local Variables*
* Declared inside a method, constructor or block.
* Accessible only within that scope.
* Must be initialized before use.
public class Main {
public static void main(String[] args) {
int age = 25;
System.out.println(age);
}
}*2. Instance Variables*
* Declared inside a class but outside methods and constructors.
* Belong to an object.
* Each object has its own copy.
class Student {
String name;
int age;
Student s1 = new Student();
s1.name = "Rahul";
s1.age = 22;
System.out.println(s1.name);
System.out.println(s1.age);
}
}*3. Static Variables*
* Declared using the
static keyword.* Belong to the class rather than individual objects.
* Shared among all instances of that class.
class Employee {
static String company = "Google";
System.out.println(Employee.company);
}
}*4. What Are Data Types in Java?*
A data type specifies what kind of value a variable can store.
Java has two major categories of data types:
* Primitive Data Types
* Non-Primitive (Reference) Data Types
5. Primitive Data Types
Java has 8 primitive data types.
| Data Type | Size | Example |
|
|
|
|
| byte | 1 byte | byte a = 10; |
| short | 2 bytes | short b = 1000; |
| int | 4 bytes | int age = 25; |
| long | 8 bytes | long n = 100000L; |
| float | 4 bytes | float x = 10.5f; |
| double | 8 bytes | double y = 25.75; |
| char | 2 bytes | char c = 'A'; |
| boolean | JVM-dependent | boolean b = true; |
Let's understand them.
*Integer Types*
Used to store whole numbers.
byte age = 25;
short salary = 30000;
int population = 1000000;
long distance = 9876543210L;
*Floating-Point Types*
Used to store decimal numbers.
float price = 99.50f;
double salary = 45000.75;
Remember:
* Float values generally require the
f suffix.* Double is the default type for decimal literals.
*Character Type*
Used to store a single character.
char grade = 'A';
char symbol = '#';
Remember: Java uses single quotes for
char.*Boolean Type*
Used to store either
true or false.boolean isJavaEasy = true;
boolean isCompleted = false;
*6. Reference Data Types*
Reference data types store references to objects rather than primitive values.
Common examples include:
* String
* Arrays
* Classes
* Interfaces
* Objects
* Enums
String name = "Rahul";
int[] numbers = {10, 20, 30};
System.out.println(name);
System.out.println(numbers[0]);
Rahul
10
*7. Type Casting in Java*
Type casting means converting one data type into another.
There are two main types.
*1. Widening Casting (Automatic)*
Converting a smaller compatible numeric type into a larger type.
int number = 100;
double result = number;
System.out.println(result);
100.0
Conversion:
int โ long โ float โ double*2. Narrowing Casting (Manual)*
Converting a larger numeric type into a smaller type.
double price = 99.99;
int result = (int) price;```
99
Note: Narrowing can result in data loss.
*8. Type Conversion*
Type conversion also happens when values are converted between compatible types.
String number = "100";
int result = Integer.parseInt(number);
System.out.println(result + 50);
150
Useful conversion methods:
- `Integer.parseInt()`, String to int
- `Double.parseDouble()`, String to double
- `String.valueOf()`, Value to String
- `Integer.toString()`, Integer to String
*9. Constants in Java*
A constant is a variable whose value cannot be reassigned after initialization.
Java uses the `final` keyword to create constants.
```public class Main {
public static void main(String[] args) {
final double PI = 3.14159;
System.out.println(PI);
}
}```
You cannot assign another value to `PI` after initialization.
*10. Variable Naming Rules*
Follow these rules when naming Java variables:
* Variable names cannot start with a number.
* Spaces are not allowed.
* Java keywords cannot be used as variable names.
* Variable names are case-sensitive.
* Use meaningful names.
* Follow camelCase naming conventions.
Valid examples:
int age = 25;
String firstName = "Rahul";
double totalSalary = 50000.50;
Invalid examples:
```java
// int 2age = 25;
// String first name = "Rahul";
// int class = 10;
*11. Practical Example*
Let's combine what we learned.
public class Student {
String name = "Rahul";
int age = 22;
double marks = 89.5;
char grade = 'A';
boolean passed = true;
System.out.println("Student Details");
System.out.println("Name: " + name);
System.out.println("Age: " + age);
System.out.println("Marks: " + marks);
System.out.println("Grade: " + grade);
System.out.println("Passed: " + passed);
}
}*Important Takeaways*
- Variables store data in a program.
- Java has three types of variables: Local, Instance and Static.
- Java supports 8 primitive data types.
- Reference types include Strings, Arrays and Classes.
- Widening casting is generally automatic.
- Narrowing casting requires explicit conversion.
-
final is used to prevent reassignment.- Java variable names are case-sensitive.
*Double Tap โค๏ธ For Part-3*
Hi Champ,
Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ
๐ฉโ๐ซ Faculty: Rachit sir
๐ฃTime : 7:30 P.M
๐Topic: Time ans Work - PYQ Series
๐ Date: 19/ 11/2026
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
Team campsumonk๐ฅ
Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ
๐ฉโ๐ซ Faculty: Rachit sir
๐ฃTime : 7:30 P.M
๐Topic: Time ans Work - PYQ Series
๐ Date: 19/ 11/2026
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
Team campsumonk๐ฅ
Forwarded from
Zycus Walk-in Drive 2026 | AI Interns (โน40K Stipend) | Mumbai, 28 Nov โ Apply Now
https://zycus.talismatic.com/jobs/JWKJPGLZA
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
https://zycus.talismatic.com/jobs/JWKJPGLZA
โโโโโโโโโโโโโ
Join our community for more โจโค๏ธ
๐Campusmonk Blogs:
https://campusmonk.in/articles/
๐Instagram:
https://www.instagram.com/hustlewithcampusmonk/
๐ Telegram:
https://t.me/Campusmonk2025
๐LinkedIn:
https://www.linkedin.com/company/campusmonk
All the best ๐๐
Campus Monk by Rachit Rastogi
Hi Champ, Today, RACHIT SIR will take your LIVE SESSION, Donโt miss it! ๐ฅ ๐ฉโ๐ซ Faculty: Rachit sir ๐ฃTime : 7:30 P.M ๐Topic: Time ans Work - PYQ Series ๐
Date: 19/ 11/2026 ๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES ๐ท Couponโฆ
LIVE CLASS day 02 Time and Work.pdf
457.5 KB
Forwarded from
๐จ Dusron ko placement lagte dekhna hai ya apni placement karwani hai?
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
โค๏ธ Team CampusMonk
๐ฅ FLAT 15% OFF ON PLACEMENT PREPARATION COURSES
๐ท Coupon Code: OFFER15
โ ๏ธ ONLY FIRST 20 STUDENTS!
Choose your preparation:
๐All Course: https://campusmonk225.netlify.app/
๐ SANKALP 10.0 โ 2027
https://campusmonk1234.netlify.app/
๐ป TCS LIVE SANKALP BATCH
https://bfwhv.courses.store/915181
๐ AARAMBH 1.0 โ RECORDED
https://bfwhv.courses.store/905432
๐ SANKALP 2028
https://bfwhv.courses.store/877885
๐ฅ Watch Batch Details:
https://youtu.be/z3eB8mz4RTs
โณ 20 students get the discount. Don't be the one who comes looking for the coupon after it's gone!
โค๏ธ Team CampusMonk