Agenda
1 Revision through quizzes
21 Evaluating expressions
31 concatenation
41 Intro to variables
Quick Recap
System out print 10
1 Semicolon at the end is important
in Java is a case sensitive
language
ill if the content is in double quotes it will get printed as it is
text message
system out print 10 20 4 10 20
if the content is without double quotes compiler will evaluate
and then print result
system out print 10 20 30
in comments
11 single line comment
1
multiple line comment
print
I us
printane prints the content and changes the line
justprint the content cursor is moved to
leaves the cursor next line
there only
system out print welcome to playground error
[Link]("Hi Everyone"); error
0
[Link]('Happy Thursday');
0 18808
[Link]("Hello");
0
[Link]("World); error
[Link]("Hello"); Hello
[Link]("My"); Myworld
[Link]("World");
Basic Arithmetic operators 11
Operator
10
Yperands
13
system out Printan 110
3
system out Printan 110
3 7
system out Printan 110
3 30
system out Printan 110
3 3
as b are
alb will give quotient only when both
integer
Integer tue ve o
Numbers
Decimal no
3
40
error
Evaluate expression
high
dow
priority order
4 18 3 I
5 3 18 26
7 To
57 8 8 6 3 18
21
Printing using concatenation
HiStudentsNamaste
Hi Namaste
error
error
Hello3
Hell 034
Hello toworld
10 Welcome
31kEur 3 2
30W t3 2
e
30Wakeup 3 2 30 wake Up 32
1ˢᵗ
10 20 t Wakeup t 6
30 Wakeup6
error
error
Jot Hello 30 Hello
Intro to variables
create a variably that can store integer value 20 in it
p
name
of variable
int var 20
datatype
int num 34
30
[Link]