Information Technology (802) - Class 12 - Lesson 3 - Fundamentals of Java Programming - Part 1
Information Technology (802) - Class 12 - Lesson 3 - Fundamentals of Java Programming - Part 1
TECHNOLOGY
CLASS XII
Subject code(802)
CONTENTS
1. OPERATING WEB.
2. ONLINE RESERVATION SYSTEMS.
3. ADVANTAGES OF ONLINE RESERVATION SYSTEM.
4. PRECAUTIONS WHILE PERFORMING ONLINE TRANSACTIONS.
5. CASE STUDY - BOOK RAIL TICKET.
6. E-GOVERNANCE.
7. E-GOVERNANCE SITES.
8. HOW DOES ONLINE SHOPPING WORKS?
9. ONLINE COURSES, TUTORIALS AND TESTS.
10. PROJECT MANAGEMENT.
11. CASE STUDY - ONLINE GAME, ONLINE QUIZ.
12. CASE STUDY - ONLINE BILL CALCULATOR.
CONTENTS
1. TYPES OF PROGRAMMING LANGUAGE
2. HIGH LEVEL LANGUAGE
3. OBJECT ORIENTED & PROCEDURAL LANGUAGE
PROGRAMMER
HIGH LEVEL
LOW LEVEL
HARDWARE
HIGH LEVEL
PROGRAMMER
OBJECT ORIENTED
PROCEDURAL
HIGH LEVEL
A single comment //
Notice that as you type the
dot after the word System
NetBeans will display
a list of available options.
you can scroll down the
displayed list to reach the
word out and then either
double click or press enter.
Output from Helloworld program.
Click on New File
Lesson3.java
created in the package
helloworld
DATA TYPES
Output : Press Shift + F6
Output : Press Shift + F6
Output : Press Shift + F6
public static void main(String[] args)
To store more than one character, we use the String class in Java.
To assign a text value to a String variable we enclose the text between double quotes.
For example,
String first_name = "Mayank";
String last_name = "Saxena"; For String datatype – Double quote
2. Variable names must be one word. Spaces are not allowed in variable names.
Underscores are allowed. “total_marks” is fine but “total marks” is not.
3. There are some reserved words in Java that cannot be used as variable names,
for example - int.
(int a = 20, b = 30) (int a = 20, b = 30) (int a = 20, b = 30) (int a = 20, b = 30)
a++ 21 a-- 19 a==b false a/=b 0 a&&b false
a%b 10 a!=b true a%=b 20 a||b true !a false
THANK YOU!!!